/* public/css/site/auth-login.css */

.auth-hero {
    min-height: calc(100vh - var(--nav-h, 62px));
    padding-block: clamp(40px, 12vh, 90px);
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    color: #f9fafb;
    display: flex;
    align-items: center;
}

.auth-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(20px, 5vw, 40px);
    align-items: center;
}

.auth-hero__content {
    max-width: 520px;
}

.auth-hero__title {
    margin: 0;
    font-size: clamp(26px, 5.2vw, 38px);
    font-weight: 900;
    letter-spacing: 0.2px;
}

.auth-hero__subtitle {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.9;
}

.auth-hero__error {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fecaca;
    font-size: 13px;
    font-weight: 700;
}

/* ===== Card ===== */
.auth-card {
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    padding: 18px 18px 20px;
    max-width: 420px;
    margin-inline-start: auto;
}

.auth-card__logo {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}

.auth-card__logo img {
    max-width: 190px;
    height: auto;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.auth-label {
    font-size: 13px;
    font-weight: 700;
    color: #e5e7eb;
}

.auth-input {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease,
        background 0.16s ease;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input:focus {
    border-color: var(--accent, #c9a552);
    box-shadow: 0 0 0 1px rgba(201, 165, 82, 0.35);
    background: rgba(15, 23, 42, 1);
}

.auth-input.is-invalid {
    border-color: rgba(239, 68, 68, 0.9);
}

.auth-field__error {
    margin: 0;
    font-size: 12px;
    color: #fecaca;
}

/* ===== Extras ===== */
.auth-extra {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
}

.auth-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent, #c9a552);
}

.auth-forgot {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-submit {
    margin-top: 10px;
    width: 100%;
}

.auth-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .auth-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-card {
        margin-inline: auto;
        max-width: 100%;
    }

    .auth-hero__content {
        text-align: center;
        margin-inline: auto;
    }

    .auth-hero__error {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .auth-hero {
        padding-block: clamp(32px, 10vh, 60px);
    }

    .auth-card {
        padding: 14px 12px 16px;
        border-radius: 16px;
    }
}
