body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 100%);
    min-height: 100vh;
    color: #1e293b;
    padding: 2.5rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background ambient glow */
body::before {
    content: '';
    position: fixed;
    top: -15%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.brand-font {
    font-family: 'Outfit', sans-serif;
}

.register-container {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
}

.register-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    padding: 2.5rem 2rem 2rem 2rem;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.register-header .badge-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e0e7ff;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Step Card Sections */
.form-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    transition: all 0.25s ease;
}

.form-section:hover,
.form-section:focus-within {
    border-color: #c7d2fe;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.06);
    background: #ffffff;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.form-control, .form-select {
    border-radius: 0.65rem;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-group-text {
    border-radius: 0.65rem;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 0.9rem;
}

/* Primary Button */
.btn-cbt-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.85rem 1.75rem;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
}

.btn-cbt-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

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

/* Siswa Table / Repeater */
.siswa-table-wrapper {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.siswa-table th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.siswa-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.btn-remove-row {
    color: #ef4444;
    background: #fee2e2;
    border: none;
    border-radius: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-remove-row:hover:not(:disabled) {
    background: #fecaca;
    color: #dc2626;
    transform: scale(1.05);
}

.btn-remove-row:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-add-row {
    background: #f0fdf4;
    border: 1px dashed #22c55e;
    color: #15803d;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0.65rem;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-add-row:hover {
    background: #dcfce7;
    color: #166534;
    border-color: #16a34a;
}

/* Auto-generate code badge */
.badge-auto-code {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    letter-spacing: 0.5px;
}
