:root {
    --auth-bg: #eef5ff;
    --auth-card: #ffffff;
    --auth-border: #dce6f2;
    --auth-text: #0c2d56;
    --auth-muted: #6f86a4;
    --auth-primary: #2f7df4;
    --auth-primary-hover: #246bd7;
    --auth-soft: #edf4ff;
    --auth-danger-bg: #fff2f1;
    --auth-danger-border: #f5c1bc;
    --auth-danger-text: #b52b20;
}

* { box-sizing: border-box; }

body.auth-modern2-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 15% 15%, rgba(47,125,244,.10), transparent 28%),
        radial-gradient(circle at 85% 85%, rgba(122,88,207,.08), transparent 24%),
        var(--auth-bg);
}

.auth-modern2-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}

.auth-modern2-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
}

.auth-modern2-card {
    width: min(100%, 440px);
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 22px 60px rgba(33, 72, 120, .12);
}

.auth-modern2-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 30px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #123a66 0%, #174d7f 100%);
    box-shadow: 0 10px 24px rgba(18, 58, 102, .18);
}

.auth-modern2-brand-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-modern2-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -.035em;
}

.auth-modern2-subtitle {
    margin: 0 0 28px;
    color: var(--auth-muted);
    line-height: 1.55;
}

.auth-modern2-form { display: grid; gap: 18px; }

.auth-modern2-field { display: grid; gap: 8px; }
.auth-modern2-field label {
    font-size: 14px;
    font-weight: 700;
}

.auth-modern2-field input {
    width: 100%;
    height: 48px;
    border: 1px solid #ccdaea;
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    color: var(--auth-text);
    background: #fff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-modern2-field input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(47,125,244,.12);
}

.auth-modern2-button {
    height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: var(--auth-primary);
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(47,125,244,.22);
    transition: background .18s ease, transform .18s ease;
}

.auth-modern2-button:hover { background: var(--auth-primary-hover); }
.auth-modern2-button:active { transform: translateY(1px); }

.auth-modern2-alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--auth-danger-border);
    border-radius: 12px;
    color: var(--auth-danger-text);
    background: var(--auth-danger-bg);
    line-height: 1.45;
}

.auth-modern2-help {
    margin-top: 18px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-modern2-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-modern2-link:hover { text-decoration: underline; }

.auth-modern2-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #173d70 0%, #1d4f86 45%, #2f73d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.auth-modern2-visual::before,
.auth-modern2-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.auth-modern2-visual::before {
    width: 420px;
    height: 420px;
    right: -130px;
    top: -100px;
}

.auth-modern2-visual::after {
    width: 300px;
    height: 300px;
    left: -70px;
    bottom: -90px;
}

.auth-modern2-visual-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.auth-modern2-visual-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255,255,255,.13);
    margin-bottom: 26px;
}

.auth-modern2-visual-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-modern2-visual h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.auth-modern2-visual p {
    margin: 0;
    max-width: 520px;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.65;
}

.auth-modern2-code input {
    text-align: center;
    letter-spacing: .18em;
    font-size: 22px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .auth-modern2-shell { grid-template-columns: 1fr; }
    .auth-modern2-visual { display: none; }
    .auth-modern2-panel { min-height: 100vh; }
}

@media (max-width: 520px) {
    .auth-modern2-panel { padding: 20px; }
    .auth-modern2-card { padding: 26px 22px; border-radius: 20px; }
    .auth-modern2-card h1 { font-size: 26px; }
}


.auth-modern2-visual-icon--brand {
    padding: 10px;
    background: rgba(255,255,255,.96);
}

.auth-modern2-visual-icon--brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* AJGO HR 2026-10-19: success / informational authentication feedback.
   The unqualified .auth-modern2-alert continues to mean a real error. */
.auth-modern2-alert--success {
    border-color: #b9dfc6;
    color: #176b38;
    background: #edf8f1;
}

.auth-modern2-alert--info {
    border-color: #bdd6f2;
    color: #215b8d;
    background: #eef6ff;
}
