:root {
    --an-bg: #070b14;
    --an-surface: rgba(15, 23, 42, 0.72);
    --an-border: rgba(148, 163, 184, 0.16);
    --an-text: #f8fafc;
    --an-muted: #94a3b8;
    --an-primary: #6366f1;
    --an-primary-2: #22d3ee;
    --an-danger: #fca5a5;
    --an-success: #86efac;
    --an-radius: 20px;
    --an-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

body.an-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--an-text);
    background: var(--an-bg);
    overflow-x: hidden;
}

.an-login-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.an-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.an-orb-1 {
    width: 420px;
    height: 420px;
    top: -80px;
    right: 10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.55), transparent 70%);
}

.an-orb-2 {
    width: 360px;
    height: 360px;
    bottom: -60px;
    left: 8%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
}

.an-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.an-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.an-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #c7d2fe;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.an-showcase-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.an-showcase-lead {
    color: var(--an-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 0 28px;
    line-height: 1.7;
}

.an-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
}

.an-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dbeafe;
    font-weight: 500;
}

.an-feature-list i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--an-border);
    color: #a5b4fc;
}

.an-explainer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    text-decoration: none;
    font-weight: 600;
}

.an-explainer-link:hover { color: #fff; }

.an-login-card {
    background: var(--an-surface);
    border: 1px solid var(--an-border);
    border-radius: var(--an-radius);
    box-shadow: var(--an-shadow);
    backdrop-filter: blur(24px);
    padding: 32px;
}

.an-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.an-login-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.an-login-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
    font-weight: 700;
}

.an-login-heading {
    margin: 2px 0 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.an-login-sub {
    color: var(--an-muted);
    margin: 0 0 22px;
    font-size: 0.95rem;
}

.an-alert-danger,
.an-alert-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.92rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.an-alert-danger {
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--an-danger);
}

.an-alert-success {
    background: rgba(20, 83, 45, 0.28);
    border-color: rgba(74, 222, 128, 0.25);
    color: var(--an-success);
}

.an-demo-creds {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 18px;
}

.an-demo-creds-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.an-demo-creds-head i {
    color: #c7d2fe;
    font-size: 1.1rem;
    margin-top: 2px;
}

.an-demo-creds-head strong { display: block; font-size: 0.92rem; }
.an-demo-creds-head small { color: var(--an-muted); font-size: 0.78rem; }

.an-demo-creds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.an-demo-creds-grid span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--an-muted);
    margin-bottom: 4px;
}

.an-demo-creds-grid code {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--an-border);
    color: #e2e8f0;
    font-size: 0.82rem;
    word-break: break-all;
}

.an-copy-btn {
    width: 100%;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.16);
    color: #e0e7ff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
}

.an-field { margin-bottom: 16px; }
.an-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #cbd5e1;
}

.an-input-wrap {
    position: relative;
}

.an-input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.an-input-wrap input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--an-border);
    background: rgba(2, 6, 23, 0.55);
    color: #fff;
    padding: 13px 44px 13px 42px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.an-input-wrap input:focus {
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.an-toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

.an-submit-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--an-primary), #4f46e5 55%, var(--an-primary-2));
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.an-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(79, 70, 229, 0.42);
}

.an-back-link {
    text-align: center;
    margin: 22px 0 0;
}

.an-back-link a {
    color: var(--an-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.an-back-link a:hover { color: #fff; }

@media (max-width: 960px) {
    .an-login-shell {
        grid-template-columns: 1fr;
        padding: 28px 0;
    }
    .an-login-showcase {
        text-align: center;
    }
    .an-showcase-lead { margin-left: auto; margin-right: auto; }
    .an-feature-list { max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px) {
    .an-login-card { padding: 22px; }
    .an-demo-creds-grid { grid-template-columns: 1fr; }
}
