@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:ital,wght@0,500;0,600;0,700&display=swap');

:root {
    --admin-auth-sidebar: #121214;
    --admin-auth-accent: #c9a35a;
    --admin-auth-accent-soft: rgba(201, 163, 90, 0.14);
    --admin-auth-text: #e8e8ed;
    --admin-auth-muted: #9a9aa8;
    --admin-auth-main: #f0f0f3;
    --admin-auth-font-ui: 'DM Sans', system-ui, sans-serif;
    --admin-auth-font-display: 'Playfair Display', Georgia, serif;
}

.admin-auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--admin-auth-font-ui);
    background: var(--admin-auth-main);
    color: #1a1a22;
}

.admin-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.admin-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2.75rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 163, 90, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(7, 128, 185, 0.16) 0%, transparent 38%),
        linear-gradient(160deg, #18181c 0%, #121214 55%, #0d0d10 100%);
    color: var(--admin-auth-text);
    overflow: hidden;
}

.admin-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
    pointer-events: none;
}

.admin-auth-brand__inner {
    position: relative;
    z-index: 1;
}

.admin-auth-brand__logo {
    display: inline-block;
    margin-bottom: 2rem;
}

.admin-auth-brand__logo img {
    max-height: 58px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.admin-auth-brand__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--admin-auth-accent-soft);
    border: 1px solid rgba(201, 163, 90, 0.28);
    color: var(--admin-auth-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.admin-auth-brand__title {
    font-family: var(--admin-auth-font-display);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.85rem;
    color: #fff;
}

.admin-auth-brand__lead {
    max-width: 26rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--admin-auth-muted);
}

.admin-auth-brand__features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    margin-top: 2.5rem;
    padding: 0;
    list-style: none;
}

.admin-auth-brand__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-auth-brand__feature-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-auth-accent-soft);
    color: var(--admin-auth-accent);
    font-size: 0.95rem;
}

.admin-auth-brand__feature strong {
    display: block;
    font-size: 0.92rem;
    color: #fff;
    margin-bottom: 0.15rem;
}

.admin-auth-brand__feature span {
    font-size: 0.84rem;
    color: var(--admin-auth-muted);
    line-height: 1.45;
}

.admin-auth-brand__foot {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    font-size: 0.84rem;
    color: var(--admin-auth-muted);
}

.admin-auth-brand__foot a {
    color: var(--admin-auth-accent);
    text-decoration: none;
    font-weight: 600;
}

.admin-auth-brand__foot a:hover {
    text-decoration: underline;
}

.admin-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.admin-auth-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(21, 21, 21, 0.07);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    padding: 2rem 1.75rem 1.75rem;
}

.admin-auth-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--admin-auth-accent);
    margin-bottom: 0.45rem;
}

.admin-auth-card__title {
    font-family: var(--admin-auth-font-display);
    font-size: 1.65rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #121214;
}

.admin-auth-card__lead {
    font-size: 0.92rem;
    color: #666;
    margin: 0 0 1.35rem;
    line-height: 1.55;
}

.admin-auth-card .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #333;
}

.admin-auth-card .form-control {
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    border-color: rgba(21, 21, 21, 0.12);
}

.admin-auth-card .form-control:focus {
    border-color: rgba(201, 163, 90, 0.55);
    box-shadow: 0 0 0 3px rgba(201, 163, 90, 0.14);
}

.admin-auth-card .form-check-label {
    font-size: 0.875rem;
    color: #555;
}

.admin-auth-card .form-check-input:checked {
    background-color: #121214;
    border-color: #121214;
}

.admin-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.78rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a22 0%, #121214 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.admin-auth-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(18, 18, 20, 0.22);
}

.admin-auth-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.admin-auth-links a {
    color: #8a6d32;
    font-weight: 600;
    text-decoration: none;
}

.admin-auth-links a:hover {
    text-decoration: underline;
}

.admin-auth-main__foot {
    margin-top: 1.25rem;
    font-size: 0.84rem;
    color: #777;
    text-align: center;
}

.admin-auth-main__foot a {
    color: #8a6d32;
    font-weight: 600;
    text-decoration: none;
}

.admin-auth-alert {
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.admin-auth-mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 1.25rem;
}

.admin-auth-mobile-brand img {
    max-height: 48px;
    width: auto;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 2.75rem;
}

.password-field__toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6c757d;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.password-field__toggle:hover,
.password-field__toggle:focus {
    color: #8a6d32;
    outline: none;
}

@media (max-width: 991.98px) {
    .admin-auth-shell {
        grid-template-columns: 1fr;
    }

    .admin-auth-brand {
        display: none;
    }

    .admin-auth-mobile-brand {
        display: block;
    }

    .admin-auth-main {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}
