/*
 * Paginile de autentificare COM5 (login, parolă uitată, resetare parolă).
 * CSS simplu, încărcat de componenta x-auth.frame; nu trece prin build.
 */

.auth-page {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #f2f5f2;
    color: #17241b;
    font-family: Ubuntu, Arial, sans-serif;
}

.auth-env {
    width: 100%;
    min-height: 32px;
    display: flex;
    justify-content: flex-end;
}

.auth-env__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fdf1dc;
    color: #8a4b08;
    font-size: 13px;
    font-weight: 500;
}

.auth-env__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d97706;
}

.auth-main {
    flex: 1;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 24px 0;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.auth-wordmark {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.auth-wordmark span {
    color: #2e7d38;
}

.auth-tagline {
    margin: 0;
    font-size: 15px;
    color: #56635a;
}

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dfe5e0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 35, 26, 0.06), 0 8px 24px rgba(16, 35, 26, 0.06);
}

.auth-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.auth-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #56635a;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-alert p {
    margin: 0;
}

.auth-alert p + p {
    margin-top: 4px;
}

.auth-alert--error {
    background: #fdecea;
    border: 1px solid #f5c2bc;
    color: #8f1d12;
}

.auth-alert--success {
    background: #e9f5ea;
    border: 1px solid #bfe0c2;
    color: #1f5a27;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 14px;
    font-weight: 500;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #c5cec7;
    border-radius: 10px;
    background: #ffffff;
    color: #17241b;
    font-family: inherit;
    font-size: 16px;
}

.auth-input:focus {
    outline: none;
    border-color: #2e7d38;
    box-shadow: 0 0 0 3px rgba(46, 125, 56, 0.2);
}

.auth-input[aria-invalid="true"] {
    border-color: #b42318;
}

.auth-password {
    position: relative;
}

.auth-input--password {
    padding-right: 52px;
}

.auth-eye {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #56635a;
    cursor: pointer;
}

.auth-eye:hover {
    background: #eef2ee;
}

.auth-eye__hide,
.auth-eye[data-visible="true"] .auth-eye__show {
    display: none;
}

.auth-eye[data-visible="true"] .auth-eye__hide {
    display: block;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 14px;
    color: #3a463d;
    cursor: pointer;
}

.auth-check {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2e7d38;
}

.auth-link {
    color: #2e7d38;
    font-size: 14px;
    font-weight: 500;
}

.auth-link:hover {
    color: #1f5a27;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    min-height: 44px;
}

.auth-submit {
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #2e7d38;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.auth-submit:hover {
    background: #25692f;
}

.auth-submit:focus-visible,
.auth-eye:focus-visible,
.auth-link:focus-visible,
.auth-check:focus-visible {
    outline: 3px solid rgba(46, 125, 56, 0.4);
    outline-offset: 2px;
}

.auth-help {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #56635a;
}

.auth-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #56635a;
}

.auth-footer__logo {
    width: auto;
    height: 26px;
}

@media (max-width: 480px) {
    .auth-card {
        gap: 18px;
        padding: 24px;
    }

    .auth-wordmark {
        font-size: 38px;
    }

    .auth-input {
        height: 48px;
    }

    .auth-eye {
        width: 44px;
        height: 44px;
    }

    .auth-submit {
        height: 52px;
    }
}
