* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(120deg, #f4f6f8, #e9edf2);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #1e293b;
}

.subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
}

label {
    font-size: 14px;
    color: #334155;
    display: block;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #2563eb;
}

button {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #1d4ed8;
}
.erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.footer {
    margin-top: 20px;
    text-align: center;
}

.footer a {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
.top {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box img {
    height: 44px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #1e293b;
}

.logo-subtitle {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #64748b;
}
.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
}

.logo-box img {
    width: 54px;
    height: auto;
}

.logo-text {
    text-align: left;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 2px;
}
/* RESET */

/*------------------------------------- */
.sucesso {
    background: #f0f7ff;
    border: 1px solid #cfe4ff;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    color: #0b3d91;
    animation: fadeIn 0.3s ease-in-out;
}

.sucesso h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.sucesso p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.sucesso small {
    color: #555;
}

.sucesso a {
    color: #0b5ed7;
    text-decoration: none;
    font-weight: 500;
}

.sucesso a:hover {
    text-decoration: underline;
}

/* animação sutil */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 480px) {
    .card {
        padding: 28px 22px;
    }

    .logo-title {
        font-size: 18px;
    }
}
.erro {
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}
.erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.25s ease-in-out;
}
/*---------------------------------------------------------------------- */ 

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}
.password-field {
    position: relative !important;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 44px;
}

.password-field .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    z-index: 2;
}

.password-field .toggle-password:hover {
    opacity: 1;
}
.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280; /* cinza elegante */
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #111827;
}

.icon-eye {
    width: 20px;
    height: 20px;
}
.signup {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.signup a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    margin-left: 4px;
}

.signup a:hover {
    text-decoration: underline;
}
