:root {
    --primary: #0b4ea2;
    --primary-dark: #073b7a;
    --primary-soft: #eaf3ff;
    --secondary: #16a34a;
    --accent: #facc15;
    --text: #102033;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
	--danger: #dc2626;
    --danger-soft: #fee2e2;
    --success-soft: #dcfce7;
    --warning-soft: #fef3c7;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(11, 78, 162, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(22, 163, 74, 0.16), transparent 28%),
        linear-gradient(135deg, #eff6ff, #ffffff 42%, #f0fdf4);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-wrapper {
    width: min(1180px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.auth-wrapper.reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.auth-wrapper.reverse .auth-hero {
    order: 2;
}

.auth-wrapper.reverse .auth-card-area {
    order: 1;
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 34px;
    color: var(--white);
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 32%),
        radial-gradient(circle at bottom left, rgba(22, 163, 74, 0.32), transparent 35%),
        linear-gradient(135deg, #073b7a 0%, #0b4ea2 54%, #0f766e 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panitia-hero {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.24), transparent 32%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.26), transparent 35%),
        linear-gradient(135deg, #07172f 0%, #073b7a 50%, #0f766e 100%);
}

.auth-hero::after {
    content: "SPMB";
    position: absolute;
    right: -18px;
    bottom: -46px;
    font-size: 150px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -10px;
    color: rgba(255, 255, 255, 0.07);
}

.auth-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.auth-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    flex: 0 0 auto;
}

.auth-brand strong,
.auth-mobile-brand strong {
    display: block;
    line-height: 1.2;
    font-size: 16px;
}

.auth-brand small,
.auth-mobile-brand small {
    color: #cbd5e1;
    font-size: 12px;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 24px;
}

.auth-mobile-brand .auth-brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.auth-mobile-brand strong {
    color: var(--primary-dark);
}

.auth-mobile-brand small {
    color: var(--muted);
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fef9c3;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 18px;
}

.auth-hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
}

.auth-hero p {
    color: #dbeafe;
    font-size: 17px;
    max-width: 560px;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.auth-feature-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0f2fe;
    font-weight: 700;
}

.auth-feature-list i {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--accent);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.role-grid div {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.role-grid i {
    color: var(--accent);
    margin-bottom: 10px;
}

.role-grid strong {
    display: block;
    color: var(--white);
    line-height: 1.25;
}

.role-grid span {
    color: #cbd5e1;
    font-size: 13px;
}

.auth-card-area {
    display: grid;
    place-items: center;
    padding: 34px;
}

.auth-card {
    width: min(440px, 100%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.auth-card-header {
    margin-bottom: 22px;
}

.auth-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 16px;
}

.auth-card h2 {
    color: #0f172a;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    color: #334155;
    font-weight: 800;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 46px 13px 42px;
    outline: none;
    background: #f8fafc;
    color: var(--text);
    transition: 0.2s ease;
}

.input-with-icon input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.08);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.toggle-password:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.form-row-between a {
    color: var(--primary);
    font-weight: 800;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.remember-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1976d2);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(11, 78, 162, 0.22);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #bfdbfe;
}

.full-width {
    width: 100%;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 16px;
    padding: 13px 14px;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-danger {
    background: var(--danger-soft);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--success-soft);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 12px;
}

.security-note,
.auth-demo-note {
    margin-top: 18px;
    border-radius: 18px;
    padding: 15px;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.security-note i {
    color: var(--primary);
    margin-top: 4px;
}

.security-note p {
    font-size: 13px;
}

.auth-demo-note {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: #fffbeb;
    border: 1px dashed #fde68a;
    color: #92400e;
    font-size: 13px;
}

.auth-demo-note strong {
    color: #713f12;
}

@media (max-width: 980px) {
    .auth-wrapper,
    .auth-wrapper.reverse {
        grid-template-columns: 1fr;
    }

    .auth-wrapper.reverse .auth-hero,
    .auth-wrapper.reverse .auth-card-area {
        order: initial;
    }

    .auth-hero {
        min-height: 430px;
    }
}

@media (max-width: 680px) {
    .auth-page {
        padding: 0;
        display: block;
    }

    .auth-wrapper,
    .auth-wrapper.reverse {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }

    .auth-hero {
        display: none;
    }

    .auth-card-area {
        min-height: 100vh;
        padding: 22px;
    }

    .auth-card {
        box-shadow: none;
        border-radius: 24px;
        padding: 24px;
    }

    .auth-mobile-brand {
        display: inline-flex;
    }

    .auth-card h2 {
        font-size: 26px;
    }
}

/* =====================================================
   REGISTER / DAFTAR CALON SISWA
   Final scoped style agar tidak merusak login siswa/panitia
===================================================== */

.register-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.register-card {
    width: min(1020px, 100%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.register-header {
    margin-bottom: 22px;
}

.register-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.register-brand .auth-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: 0;
    box-shadow: 0 14px 28px rgba(11, 78, 162, 0.18);
    flex: 0 0 auto;
}

.register-brand strong {
    display: block;
    color: var(--primary-dark);
    line-height: 1.2;
    font-size: 16px;
}

.register-brand small {
    color: var(--muted);
    font-size: 12px;
}

.register-header .auth-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 21px;
    margin-bottom: 14px;
}

.register-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    color: #0f172a;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.register-header p {
    color: var(--muted);
    font-size: 15px;
}

.register-info-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.register-info-box div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px;
}

.register-info-box span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 4px;
}

.register-info-box strong {
    color: #0f172a;
}

.register-form {
    display: grid;
    gap: 24px;
}

.form-section-title {
    border-top: 1px solid var(--border);
    padding-top: 22px;
}

.form-section-title:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.form-section-title h3 {
    color: #0f172a;
    font-size: 20px;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.form-section-title p {
    color: var(--muted);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group label span {
    color: var(--danger);
}

.form-group select,
.form-group input[type="date"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    background: #f8fafc;
    color: var(--text);
    transition: 0.2s ease;
}

.form-group select:focus,
.form-group input[type="date"]:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.08);
}

.register-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.register-actions .btn {
    min-width: 190px;
}

.alert-warning {
    background: var(--warning-soft);
    color: #92400e;
    border: 1px solid #fde68a;
}

@media (max-width: 780px) {
    .register-page {
        padding: 16px;
        align-items: start;
    }

    .register-card {
        padding: 22px;
        border-radius: 24px;
    }

    .register-info-box,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .register-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .register-page {
        padding: 0;
    }

    .register-card {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }

    .register-header h1 {
        font-size: 27px;
    }
}