/* ==========================================================
   PÁGINA DE LOGIN
   ========================================================== */

body {
    padding: 48px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 48px;
}

.login-page {
    width: 100%;
    max-width: 440px;
    margin-top: auto;
}

.login-card {
    width: 100%;
}

.login-card section {
    width: 100%;
    padding: 32px;

    background-color: rgba(20, 24, 28, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 12px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.login-card h2 {
    margin: 0 0 28px;
    padding-bottom: 12px;

    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);

    font-size: 1.45rem;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;

    background-color: #0c0f12;
    color: var(--text-color);

    border: 1px solid var(--border-color);
    border-radius: 7px;

    font-size: 1rem;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-group input::placeholder {
    color: #707987;
}

.form-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.13);
}

.forgot-password-wrapper {
    display: flex;
    justify-content: flex-end;

    margin: -8px 0 22px;
}

.forgot-password-link {
    padding: 0;

    border: none;
    background: transparent;

    color: var(--primary);

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.forgot-password-link:hover {
    color: #34d399;
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;

    border: none;
    border-radius: 7px;

    background-color: var(--primary);
    color: #ffffff;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-submit:hover {
    background-color: var(--primary-hover);

    box-shadow:
        0 8px 22px rgba(16, 185, 129, 0.22);

    transform: translateY(-1px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    display: none;

    margin-bottom: 18px;
    padding: 12px 14px;

    color: #f87171;
    background-color: rgba(239, 68, 68, 0.10);

    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 7px;

    font-size: 0.9rem;
    line-height: 1.45;
}

/* Faz o footer ocupar a parte final sem encostar no card */
.vitrine-footer {
    margin-top: 0;
    margin-bottom: auto;
}

/* =======================================================
   CAMPO DE SENHA COM BOTÃO MOSTRAR/OCULTAR
======================================================= */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 55px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    border: none;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 20px;

    color: #9ca3af;

    transition: .25s;
}

.toggle-password:hover {
    color: #10b981;
    transform: translateY(-50%) scale(1.08);
}

.toggle-password:focus {
    outline: none;
}

.toggle-password:active {
    transform: translateY(-50%) scale(.96);
}

.toggle-password img {
    display: block;

    width: 22px;
    height: 22px;

    opacity: 0.9;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}

.toggle-password:hover img {
    opacity: 1;
    transform: scale(1.08);

    filter:
        brightness(0)
        saturate(100%)
        invert(68%)
        sepia(74%)
        saturate(493%)
        hue-rotate(104deg)
        brightness(91%)
        contrast(89%);
}



/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 480px) {
    body {
        padding: 28px 16px;
        gap: 34px;
    }

    .login-page {
        margin-top: 0;
    }

    .login-card section {
        padding: 24px 20px;
    }

    .login-card h2 {
        font-size: 1.3rem;
    }

    .form-group input,
    .login-submit {
        font-size: 16px;
    }

    .forgot-password-wrapper {
        justify-content: center;
    }
}