/**
 * Index Patrol — Login / auth pages
 */

body.auth-page {
    background: #0b1220;
}

body.auth-page .loader-bg {
    background: #0b1220;
}

body.auth-page .ip-messages {
    top: 1.25rem;
    right: 50%;
    transform: translateX(50%);
    max-width: 480px;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(29, 78, 216, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(14, 165, 233, 0.2), transparent 50%),
        linear-gradient(165deg, #0b1220 0%, #0f2744 45%, #132f5c 100%);
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 1020px;
    min-height: 580px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 24px 80px rgba(0, 0, 0, 0.35);
}

/* ── Form panel ── */
.auth-form-panel {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    padding: 2rem 2.75rem 2.5rem;
    background: #fff;
}

.auth-form-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.auth-lang .language-switcher-form .input-group {
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-lang .input-group-text {
    background: #f8fafc;
    border: none;
    color: #64748b;
    padding-left: 0.85rem;
}

.auth-lang select.form-control {
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    height: auto;
    padding: 0.45rem 0.75rem 0.45rem 0;
    background: #fff;
}

.auth-form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-logo-mobile {
    display: block;
    max-height: 72px;
    width: auto;
    margin: 0 auto 1.5rem;
}

.auth-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.55;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-alert i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-field {
    position: relative;
    margin-bottom: 1.15rem;
}

.auth-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 2.75rem 0.8rem 2.65rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.auth-toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
}

.auth-toggle-pw:hover {
    color: #475569;
    background: #f1f5f9;
}

.auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0ea5e9 100%);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

/* ── Hero panel ── */
.auth-hero-panel {
    flex: 1 1 48%;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow: hidden;
    background: linear-gradient(155deg, #0c1929 0%, #132f5c 40%, #1d4ed8 100%);
}

.auth-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 340px;
}

.auth-hero-logo {
    max-height: 130px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.92;
}

.auth-feature-list li:last-child {
    border-bottom: none;
}

.auth-feature-list i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .auth-shell {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .auth-card {
        min-height: auto;
        border-radius: 16px;
    }

    .auth-form-panel {
        padding: 1.5rem 1.5rem 2rem;
    }

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

    .auth-subtitle {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 380px) {
    .auth-form-panel {
        padding: 1.25rem 1.25rem 1.75rem;
    }
}
