/* =========================================================
   LOGIN / REGISTO / RESET — PLEXO BOOKS
   ========================================================= */

.login-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(44px, 7vw, 84px) 20px 72px;
    background:#fff;
}

.login-shell {
    width: min(100%, 460px);
    display: grid;
    gap: 28px;
}

.login-copy {
    text-align: left;
}

.login-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent-strong, #ff5a1f);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-copy h1 {
    margin: 0;
    color: var(--plexo-ink, #10233f);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 1000;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.login-copy p {
    max-width: 420px;
    margin: 12px 0 0;
    color: var(--muted, #697386);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 9px;
}

.login-field label {
    color: var(--plexo-ink, #10233f);
    font-size: 0.92rem;
    font-weight: 950;
}

.login-field input {
    width: 100%;
    min-height: 56px;
    padding: 0 17px;
    border: 1px solid rgba(234, 216, 202, 0.95);
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text, #1f2937);
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.login-field input::placeholder {
    color: rgba(105, 115, 134, 0.68);
}

.login-field input:focus {
    border-color: rgba(255, 107, 26, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.12);
}

.login-password {
    position: relative;
    width: 100%;
}

.login-password input {
    padding-right: 116px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    min-width: 88px;
    height: 40px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--primary, #12372a);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.login-password-toggle::after {
    content: "Mostrar";
}

.login-password-toggle.is-visible::after {
    content: "Ocultar";
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    background: rgba(18, 55, 42, 0.08);
    color: var(--accent-strong, #ff5a1f);
    outline: none;
}

.login-password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-eye-off {
    display: none !important;
}

.login-password-toggle.is-visible .login-eye-open {
    display: none !important;
}

.login-password-toggle.is-visible .login-eye-off {
    display: block !important;
}

.login-help {
    display: block;
    margin-top: 2px;
    color: var(--muted, #697386);
    font-size: 0.82rem;
    font-weight: 700;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -2px;
}

.login-row a,
.login-note a {
    color: var(--accent-strong, #ff5a1f);
    font-weight: 950;
    text-decoration: none;
}

.login-row a:hover,
.login-note a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-submit {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    border: 1px solid var(--accent, #ff6b1a);
    border-radius: 0px;
    background: var(--accent, #ff6b1a);
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 107, 26, 0.18);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-strong, #ff5a1f);
    background: var(--accent-strong, #ff5a1f);
    box-shadow: 0 18px 36px rgba(255, 107, 26, 0.24);
    outline: none;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted, #697386);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(234, 216, 202, 0.95);
}

.login-google {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 18px;
    border: 1px solid rgba(234, 216, 202, 0.95);
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--plexo-ink, #10233f);
    font-size: 0.96rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18, 55, 42, 0.05);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.login-google:hover,
.login-google:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(18, 55, 42, 0.22);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(18, 55, 42, 0.09);
    outline: none;
}

.login-google svg {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
}

.login-note {
    margin: 2px 0 0;
    color: var(--muted, #697386);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

/* Mensagens antigas do sistema, caso existam dentro das páginas de auth */
.login-page .alert,
.login-page .flash,
.login-page .form-error,
.login-page .form-success {
    border-radius: 14px;
    font-weight: 800;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 620px) {
    .login-page {
        min-height: auto;
        padding: 34px 18px 58px;
    }

    .login-shell {
        gap: 24px;
    }

    .login-copy {
        text-align: left;
    }

    .login-copy h1 {
        font-size: clamp(2rem, 10vw, 2.6rem);
    }

    .login-copy p {
        font-size: 0.96rem;
    }

    .login-field input {
        min-height: 54px;
        border-radius: 13px;
    }

    .login-password input {
        padding-right: 106px;
    }

    .login-password-toggle {
        min-width: 80px;
        height: 38px;
        right: 8px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .login-submit,
    .login-google {
        min-height: 54px;
        border-radius: 13px;
    }
}

@media (max-width: 380px) {
    .login-password input {
        padding-right: 50px;
    }

    .login-password-toggle {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }

    .login-password-toggle::after {
        content: "";
    }

    .login-password-toggle.is-visible::after {
        content: "";
    }
}