/**
 * Merak HMS — Auth / Login presentation
 * Brand-aligned with admin crimson shell
 */

:root {
    --merak-primary: #c41e3a;
    --merak-primary-hover: #9f1830;
    --merak-primary-subtle: #fde8ec;
    --merak-radius: 0.75rem;
    --merak-radius-lg: 1rem;
    --merak-radius-xl: 1.25rem;
    --merak-font: 'Cairo', system-ui, sans-serif;
}

.auth-body {
    min-height: 100vh;
    font-family: var(--merak-font);
    color: #0f172a;
    background:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(196, 30, 58, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 90%, rgba(15, 23, 42, 0.55), transparent 50%),
        linear-gradient(145deg, #0c1222 0%, #1a1020 42%, #2a1218 100%);
    -webkit-font-smoothing: antialiased;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.auth-panel {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.auth-brand__mark {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e11d48, #9f1830);
    box-shadow:
        0 12px 32px rgba(196, 30, 58, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-brand__mark i {
    font-size: 1.65rem;
    color: #fff;
}

.auth-brand__name {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: #fff;
}

.auth-brand__tagline {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--merak-radius-xl);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.28),
        0 2px 0 rgba(255, 255, 255, 0.4) inset;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.auth-card__body {
    padding: 1.75rem 1.5rem 1.5rem;
}

.auth-card__title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-wrapper .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-wrapper .form-control {
    min-height: 2.85rem;
    border-radius: 0.7rem;
    border-color: #e2e8f0;
    font-weight: 500;
    padding-inline: 0.9rem;
}

.auth-wrapper .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    border-radius: 0.7rem;
    min-width: 2.85rem;
    justify-content: center;
}

.auth-wrapper .form-control:focus {
    border-color: var(--merak-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.22);
}

.auth-wrapper .input-group:focus-within .input-group-text {
    border-color: var(--merak-primary);
    color: var(--merak-primary);
}

.auth-wrapper .btn-primary {
    background: linear-gradient(135deg, #d42445 0%, #9f1830 100%);
    border: none;
    min-height: 2.9rem;
    font-weight: 700;
    border-radius: 0.7rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-wrapper .btn-primary:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #861428 100%);
    filter: brightness(1.03);
    box-shadow: 0 10px 24px rgba(196, 30, 58, 0.42);
    transform: translateY(-1px);
}

.auth-wrapper .btn-primary:active {
    transform: translateY(0);
}

.auth-wrapper a {
    color: var(--merak-primary);
    font-weight: 600;
}

.auth-wrapper a:hover {
    color: var(--merak-primary-hover);
}

.auth-lang {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 2;
}

.auth-lang .btn,
.auth-lang .dropdown-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
}

.auth-footer-note {
    text-align: center;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

@media (max-width: 575.98px) {
    .auth-shell {
        align-items: flex-start;
        padding-top: 3.5rem;
    }

    .auth-lang {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .auth-card__body {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .auth-brand__name {
        font-size: 1.5rem;
    }
}
