:root {
    --auth-ink: #1c1917;
    --auth-primary: #292524;
    --auth-accent: #a16207;
    --auth-bg: #fdfaf3;
}

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--auth-bg);
}

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

@media (max-width: 992px) {
    .auth-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 1fr;
    }
}

.auth-visual {
    background: linear-gradient(135deg, var(--auth-ink) 0%, var(--auth-primary) 60%, #44403c 100%);
    color: #fff;
    padding: var(--space-9);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--space-6);
}

@media (max-width: 992px) {
    .auth-visual {
        padding: var(--space-5);
        gap: var(--space-3);
    }
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset-inline-end: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.20), transparent 70%);
    filter: blur(20px);
}

.auth-visual::after {
    content: '\f3a5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset-inline-start: -50px;
    bottom: -80px;
    font-size: 480px;
    color: rgba(212, 175, 55, 0.06);
    pointer-events: none;
    transform: rotate(-12deg);
}

@media (max-width: 992px) {
    .auth-visual::after {
        display: none;
    }
}

.auth-visual__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    z-index: 1;
}

.auth-visual__logo {
    width: 60px;
    height: 60px;
    background: var(--auth-accent);
    color: var(--auth-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.auth-visual__name {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--auth-bg);
}

.auth-visual__tagline {
    font-size: 13px;
    opacity: 0.7;
    margin: 2px 0 0;
    color: var(--auth-accent);
}

.auth-visual__hero {
    position: relative;
    z-index: 1;
    align-self: center;
}

.auth-visual__hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,175,55,0.18);
    color: var(--auth-accent);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.auth-visual__hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 var(--space-3);
    max-width: 480px;
    color: var(--auth-bg);
}

    .auth-visual__hero-title span {
        color: var(--auth-accent);
    }

.auth-visual__hero-sub {
    font-size: var(--fs-md);
    line-height: 1.7;
    opacity: 0.8;
    max-width: 460px;
    margin: 0 0 var(--space-5);
}

.feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
    position: relative;
    z-index: 1;
}

    .feat-list li {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        font-size: var(--fs-sm);
    }

        .feat-list li i {
            width: 28px;
            height: 28px;
            background: rgba(212, 175, 55, 0.18);
            color: var(--auth-accent);
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }

@media (max-width: 992px) {
    .feat-list,
    .auth-visual__hero-sub {
        display: none;
    }
}

.auth-visual__foot {
    font-size: 11px;
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .auth-visual__foot {
        display: none;
    }
}

.auth-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-7);
    overflow-y: auto;
}

@media (max-width: 992px) {
    .auth-form-wrap {
        padding: var(--space-5);
    }
}

.auth-form {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.auth-form__title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin: 0 0 var(--space-2);
    color: var(--auth-primary);
}

.auth-form__sub {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-5);
    font-size: var(--fs-sm);
}

.auth-form__field {
    position: relative;
    margin-bottom: var(--space-3);
}

    .auth-form__field label {
        display: block;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--auth-primary);
        margin-bottom: 6px;
    }

.auth-form__field-wrap {
    position: relative;
}

    .auth-form__field-wrap > i.field-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        inset-inline-start: 14px;
        color: var(--color-text-muted);
        pointer-events: none;
        font-size: 15px;
        width: 20px;
        height: 20px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

.auth-form__field input {
    width: 100%;
    padding: 12px 14px;
    padding-inline-start: 44px;
    padding-inline-end: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--fs-base);
    font-family: var(--font-sans);
    transition: all var(--duration);
}

    .auth-form__field input[type="password"],
    .auth-form__field input.has-action {
        padding-inline-end: 44px;
    }

    .auth-form__field input:focus {
        outline: none;
        border-color: var(--auth-accent);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
    }

.auth-form__field-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 8px;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .auth-form__field-toggle:hover {
        background: var(--color-surface-2);
        color: var(--auth-primary);
    }

.auth-form__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    font-size: var(--fs-sm);
}

.auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--color-text);
}

    .auth-form__remember input {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--auth-accent);
    }

.auth-form__submit {
    width: 100%;
    padding: 14px;
    background: var(--auth-primary);
    color: var(--auth-accent);
    border: 0;
    border-radius: var(--radius);
    font-size: var(--fs-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration);
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: 0 4px 12px rgba(26, 41, 66, 0.2);
}

    .auth-form__submit:hover {
        background: var(--auth-accent);
        color: var(--auth-primary);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
    }

.auth-form__footer-text {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    margin: 0;
}

    .auth-form__footer-text a {
        color: var(--auth-accent);
        font-weight: 600;
    }

.demo-hint {
    background: rgba(212, 175, 55, 0.14);
    border-inline-start: 3px solid var(--auth-accent);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--fs-xs);
    color: var(--auth-primary);
}

.demo-banner {
    background: linear-gradient(135deg, #fffaf0 0%, #fff5e1 100%);
    border: 1.5px solid var(--auth-accent);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: var(--space-4);
}

.demo-banner__head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8c6a2a;
    font-size: 14px;
    margin-bottom: 8px;
}

.demo-banner__head i {
    font-size: 16px;
}

.demo-banner__text {
    color: #4b5563;
    font-size: 13px;
    margin: 0 0 8px;
}

.demo-banner__creds {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.demo-banner__creds code {
    background: #fff;
    border: 1px solid #e5e7ee;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13.5px;
    color: var(--auth-primary);
    font-weight: 700;
    user-select: all;
}

.demo-banner__creds span {
    color: #9ca3af;
    font-weight: 700;
}

.demo-banner__fill {
    width: 100%;
    background: var(--auth-primary);
    color: #fff;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: background .15s;
    margin-bottom: 8px;
}

.demo-banner__fill:hover {
    background: var(--auth-accent);
    color: var(--auth-primary);
}

.demo-banner__note {
    color: #9ca3af;
    font-size: 11.5px;
    margin: 0;
    line-height: 1.6;
}

.validation-text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.validation-text li {
    margin: 0;
    padding: 0;
}

.validation-summary-errors {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 992px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    .auth-wrap {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto 1fr;
    }
    .auth-visual {
        padding: 24px 20px;
    }
    .auth-visual__hero,
    .feat-list,
    .auth-visual__stats {
        display: none;
    }
    .auth-visual__brand {
        margin-bottom: 0;
        justify-content: center;
    }
    .auth-visual__name {
        font-size: 22px;
    }
    .auth-visual__tagline {
        font-size: 12px;
    }
    .auth-form {
        padding: 28px 22px 36px;
    }
}

@media (max-width: 480px) {
    .auth-visual {
        padding: 18px 16px;
    }
    .auth-visual__logo {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .auth-visual__name {
        font-size: 19px;
    }
    .auth-form {
        padding: 22px 16px 28px;
    }
    .auth-form__title {
        font-size: 20px;
    }
    .auth-form__sub {
        font-size: 13px;
    }
    .form-control,
    .input-group-text {
        font-size: 14.5px;
    }
    .btn-primary,
    .demo-banner__fill {
        font-size: 14px;
        padding: 11px 14px;
    }
    .demo-banner {
        padding: 14px;
    }
}
