/* ============================================
   REGISTRATION.CSS - ULTRA MODERN (No Dark Mode)
   ============================================ */

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Colors */
    --primary-900: #0A3D62;
    --primary-800: #0F4B6E;
    --primary-700: #1A5D82;
    --primary-600: #2A7A9E;
    --primary-500: #3B97C4;
    --primary-400: #5CB0D9;
    --primary-300: #89C9E8;
    --primary-200: #B8DFF2;
    --primary-100: #E0F0F8;
    
    /* Success Colors */
    --success-700: #059669;
    --success-600: #10B981;
    --success-500: #34D399;
    --success-400: #6EE7B7;
    --success-100: #ECFDF5;
    
    /* Warning Colors */
    --warning-700: #D97706;
    --warning-600: #F59E0B;
    --warning-500: #FBBF24;
    --warning-100: #FEF3C7;
    
    /* Danger Colors */
    --danger-700: #DC2626;
    --danger-600: #EF4444;
    --danger-500: #F87171;
    --danger-100: #FEF2F2;
    
    /* Neutral Colors */
    --gray-900: #0F172A;
    --gray-800: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0A3D62 0%, #1A5D82 50%, #2A7A9E 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%);
    --gradient-danger: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    --gradient-warning: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    --gradient-hero: linear-gradient(135deg, rgba(10, 61, 98, 0.92), rgba(26, 93, 130, 0.88));
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.20);
    --shadow-2xl: 0 30px 80px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    position: relative;
    background: var(--gray-900);
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        var(--gradient-hero),
        url('https://nakurucollegeofhealth.ac.ke/wp-content/uploads/2026/02/IMG_20251219_080858_996-rotated.jpg') 
        center center / cover no-repeat fixed;
    background-size: cover;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05), rgba(0,0,0,0.3)),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.05), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Animated background particles */
body::before {
    animation: backgroundPulse 15s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* ============================================
   MAIN CONTAINER - GLASSMORPHISM
   ============================================ */
.register-container {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow: 
        var(--shadow-2xl),
        inset 0 1px 0 rgba(255,255,255,0.3);
    width: 100%;
    max-width: 820px;
    padding: var(--space-8) var(--space-8) var(--space-6);
    transition: all var(--transition-slow);
    animation: containerFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 1px solid rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.register-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(16, 185, 129, 0.06), transparent 60%);
    pointer-events: none;
    animation: shimmer 20s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(10deg); }
}

@keyframes containerFadeIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   LOGO AREA
   ============================================ */
.logo-area {
    text-align: center;
    margin-bottom: var(--space-4);
    position: relative;
}

.logo-circle {
    background: white;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px rgba(255,255,255,0.5);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    transition: all var(--transition-base);
    position: relative;
}

.logo-circle::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.15;
    filter: blur(8px);
}

.logo-circle:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.logo-circle img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.college-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-900);
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: var(--space-1);
    position: relative;
}

.tagline::before,
.tagline::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--success-400);
    vertical-align: middle;
    margin: 0 10px;
}

.portal-badge {
    background: var(--gradient-primary);
    color: white;
    display: inline-block;
    margin: var(--space-3) auto var(--space-4);
    padding: 0.35rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.portal-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: shimmerBadge 3s ease-in-out infinite;
}

@keyframes shimmerBadge {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ============================================
   HEADER
   ============================================ */
.register-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
    letter-spacing: -0.5px;
    position: relative;
}

.register-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-success);
    border-radius: var(--radius-full);
    margin-top: var(--space-2);
    animation: expandLine 0.8s ease-out forwards;
    transform-origin: left;
}

@keyframes expandLine {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.register-container > p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: var(--space-5);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding: var(--space-3) 0;
    position: relative;
    gap: var(--space-2);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gray-200);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: var(--radius-full);
}

.progress-step {
    font-size: 0.6rem;
    color: var(--gray-400);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--gray-100);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
    text-align: center;
    min-width: 70px;
    cursor: pointer;
    font-weight: 500;
    border: 2px solid transparent;
    flex: 1;
}

.progress-step .step-icon {
    display: block;
    font-size: 0.9rem;
    margin-bottom: var(--space-1);
}

.progress-step.active {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.2);
    box-shadow: var(--shadow-md);
}

.progress-step.done {
    background: var(--gradient-success);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

.progress-step.done::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success-600);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.progress-step:not(.active):not(.done):hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: var(--space-2);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

label i {
    color: var(--success-600);
    width: 16px;
    height: 16px;
}

input, select {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    background: white;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
}

input:hover, select:hover {
    border-color: var(--gray-300);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--success-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

input:disabled {
    background: var(--gray-50);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================================
   ROLE FIELDS
   ============================================ */
.role-fields {
    background: rgba(248, 250, 252, 0.6);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    display: none;
    backdrop-filter: blur(4px);
}

.role-fields.active {
    display: block;
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* ============================================
   BUTTONS
   ============================================ */
button {
    background: var(--gradient-primary);
    border: none;
    padding: var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    margin-top: var(--space-3);
    box-shadow: var(--shadow-md);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

button:hover:not(:disabled)::after {
    transform: translateX(100%);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary {
    background: var(--gray-600);
    box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-700);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--gradient-success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: var(--gradient-danger);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* ============================================
   DRAFT ACTIONS
   ============================================ */
.draft-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.draft-actions button {
    margin-top: 0;
    padding: var(--space-3);
    font-size: 0.85rem;
}

/* ============================================
   MESSAGES
   ============================================ */
.message {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.message.show {
    display: block;
}

.error {
    background: var(--danger-100);
    color: var(--danger-700);
    border-left: 4px solid var(--danger-600);
}

.success {
    background: var(--success-100);
    color: var(--success-700);
    border-left: 4px solid var(--success-600);
}

.warning {
    background: var(--warning-100);
    color: var(--warning-700);
    border-left: 4px solid var(--warning-600);
}

/* ============================================
   HELP TEXT
   ============================================ */
.help-text {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: var(--space-2);
    line-height: 1.4;
}

/* ============================================
   PASSWORD STRENGTH
   ============================================ */
.password-strength {
    margin-top: var(--space-2);
}

.strength-bar {
    height: 4px;
    width: 0%;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    margin-top: var(--space-2);
}

.strength-weak { 
    background: var(--gradient-danger); 
    width: 25%; 
}

.strength-fair { 
    background: var(--gradient-warning); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3B82F6, #60A5FA); 
    width: 75%; 
}

.strength-strong { 
    background: var(--gradient-success); 
    width: 100%; 
}

.strength-text {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: var(--space-1);
}

.text-weak { color: var(--danger-600); }
.text-fair { color: var(--warning-600); }
.text-good { color: #3B82F6; }
.text-strong { color: var(--success-600); }

/* ============================================
   INTAKE SECTION
   ============================================ */
.intake-section {
    background: rgba(16, 185, 129, 0.05);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-600);
    margin-top: var(--space-3);
    transition: all var(--transition-base);
}

.intake-section.hidden {
    display: none;
}

.tvet-intake-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.intake-preview {
    background: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--success-700);
    margin-top: var(--space-2);
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ============================================
   PROGRAM DESCRIPTION
   ============================================ */
.program-description {
    font-size: 0.75rem;
    color: var(--gray-600);
    padding: var(--space-2) var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
    border-left: 3px solid var(--success-500);
    min-height: 36px;
    transition: all var(--transition-base);
}

/* ============================================
   PHOTO UPLOAD
   ============================================ */
.photo-upload-container {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-top: var(--space-2);
    flex-wrap: wrap;
}

.photo-preview {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px dashed var(--gray-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    background: var(--gray-50);
    position: relative;
    flex-shrink: 0;
}

.photo-preview:hover {
    border-color: var(--success-500);
    background: var(--success-100);
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview .placeholder-icon {
    color: var(--gray-400);
    font-size: 2.5rem;
}

.photo-preview .placeholder-text {
    font-size: 0.6rem;
    color: var(--gray-400);
    margin-top: var(--space-1);
}

.photo-preview .upload-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.6rem;
    padding: var(--space-2);
    text-align: center;
    opacity: 0;
    transition: var(--transition-base);
}

.photo-preview:hover .upload-hover {
    opacity: 1;
}

.photo-upload-controls {
    flex: 1;
    min-width: 150px;
}

.photo-status {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: var(--space-2);
}

.photo-status.uploaded {
    color: var(--success-600);
    font-weight: 600;
}

/* ============================================
   DOCUMENT UPLOAD CARDS
   ============================================ */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.doc-card {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    background: white;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.doc-card:hover {
    border-color: var(--primary-400);
    background: var(--primary-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.doc-card.uploaded {
    border-color: var(--success-500);
    background: var(--success-100);
    border-style: solid;
}

.doc-card .doc-icon {
    font-size: 30px;
    margin-bottom: var(--space-2);
    color: var(--primary-600);
}

.doc-card .doc-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-700);
}

.doc-card .doc-status {
    font-size: 0.6rem;
    color: var(--gray-400);
    margin-top: var(--space-1);
}

.doc-card .doc-status.uploaded-text {
    color: var(--success-600);
    font-weight: 600;
}

.doc-card input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.doc-card .doc-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success-600);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 13px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.doc-card.uploaded .doc-badge {
    display: flex;
}

.doc-card .doc-remove {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 0.55rem;
    color: var(--danger-600);
    cursor: pointer;
    display: none;
    background: white;
    padding: 2px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--danger-200);
    z-index: 2;
    transition: var(--transition-fast);
    font-weight: 600;
}

.doc-card .doc-remove:hover {
    background: var(--danger-100);
    border-color: var(--danger-500);
}

.doc-card.uploaded .doc-remove {
    display: block;
}

.doc-card .doc-file-name {
    font-size: 0.55rem;
    color: var(--gray-500);
    margin-top: var(--space-1);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   TERMS & CONDITIONS
   ============================================ */
.terms-container {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.terms-container:hover {
    border-color: var(--gray-300);
}

.terms-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-600);
    border-radius: var(--radius-sm);
}

.terms-container label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-600);
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

.terms-container a {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.terms-container a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-success);
    transition: var(--transition-base);
}

.terms-container a:hover::after {
    width: 100%;
}

.terms-container a:hover {
    color: var(--success-600);
}

/* ============================================
   EMAIL & STUDENT ID STATUS
   ============================================ */
#email-status,
#student-id-status {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: var(--space-2);
    min-height: 20px;
    transition: all var(--transition-base);
}

#student-id-status.valid {
    color: var(--success-600);
}

#student-id-status.invalid {
    color: var(--danger-600);
}

#student-id-status.checking {
    color: var(--warning-600);
}

#student-id-status.warning {
    color: var(--warning-600);
}

/* ============================================
   STUDENT TYPE SELECTOR
   ============================================ */
.student-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.student-type-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: white;
    position: relative;
    overflow: hidden;
}

.student-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-success);
    opacity: 0;
    transition: var(--transition-base);
}

.student-type-card:hover {
    border-color: var(--primary-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.student-type-card.selected {
    border-color: var(--success-500);
    background: var(--success-100);
    box-shadow: var(--shadow-glow);
}

.student-type-card.selected::before {
    opacity: 0.05;
}

.student-type-card .type-icon {
    font-size: 32px;
    display: block;
    margin-bottom: var(--space-2);
    position: relative;
}

.student-type-card .type-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-800);
    position: relative;
}

.student-type-card .type-desc {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: var(--space-1);
    position: relative;
}

.student-type-card input[type="radio"] {
    display: none;
}

/* ============================================
   REG NUMBER DISPLAY
   ============================================ */
.reg-number-display {
    background: var(--gray-50);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-top: var(--space-2);
    display: none;
    animation: slideUp 0.4s ease-out;
}

.reg-number-display.show {
    display: block;
}

.reg-number-display .reg-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
}

.reg-number-display .reg-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-700);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-top: var(--space-1);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reg-number-display .reg-hint {
    font-size: 0.65rem;
    color: var(--gray-400);
    margin-top: var(--space-2);
}

.regenerate-btn {
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
    width: auto !important;
    background: var(--gray-600);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.regenerate-btn:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   PROGRAM REQUIRED MESSAGE
   ============================================ */
.program-required-msg {
    background: var(--warning-100);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--warning-600);
    font-size: 0.8rem;
    color: var(--warning-700);
    margin-top: var(--space-2);
    display: none;
}

.program-required-msg.show {
    display: block;
    animation: slideUp 0.4s ease-out;
}

/* ============================================
   VALIDATION MODAL
   ============================================ */
.validation-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    animation: fadeIn 0.3s ease;
}

.validation-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.validation-modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 500px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-2xl);
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalBounce {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.validation-modal-content .modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: 32px;
}

.validation-modal-content .modal-icon.error {
    background: var(--danger-100);
    color: var(--danger-600);
}

.validation-modal-content .modal-icon.warning {
    background: var(--warning-100);
    color: var(--warning-600);
}

.validation-modal-content .modal-icon.success {
    background: var(--success-100);
    color: var(--success-600);
}

.validation-modal-content h3 {
    color: var(--gray-800);
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
}

.validation-modal-content .modal-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: var(--space-5);
}

.validation-modal-content .error-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-5);
}

.validation-modal-content .error-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    border-left: 3px solid var(--danger-600);
    font-size: 0.85rem;
    color: var(--gray-700);
}

.validation-modal-content .error-list li .error-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.validation-modal-content .error-list li .error-field {
    font-weight: 600;
    color: var(--primary-700);
}

.validation-modal-content .modal-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-5);
}

.validation-modal-content .modal-actions button {
    flex: 1;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.validation-modal-content .modal-actions .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.validation-modal-content .modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.validation-modal-content .modal-actions .btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    box-shadow: none;
}

.validation-modal-content .modal-actions .btn-secondary:hover {
    background: var(--gray-300);
}

.validation-modal-content .modal-actions .btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-md);
}

.validation-modal-content .modal-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   TERMS MODAL
   ============================================ */
.terms-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.terms-modal-overlay.show {
    display: flex;
}

.terms-modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-6);
    box-shadow: var(--shadow-2xl);
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terms-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-600);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
}

.terms-modal-content .modal-header h2 {
    color: var(--primary-700);
    margin: 0;
    font-size: 1.3rem;
}

.terms-modal-content .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-400);
    width: auto;
    margin: 0;
    padding: 0 var(--space-2);
    box-shadow: none;
    transition: var(--transition-fast);
}

.terms-modal-content .modal-close:hover {
    color: var(--gray-600);
    transform: rotate(90deg);
    background: none;
    box-shadow: none;
}

.terms-modal-content .terms-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.terms-modal-content .terms-body h4 {
    color: var(--primary-700);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
}

.terms-modal-content .terms-body p {
    margin-bottom: var(--space-2);
}

.terms-modal-content .terms-body ul {
    padding-left: var(--space-5);
    margin-bottom: var(--space-3);
}

.terms-modal-content .terms-body ul li {
    margin-bottom: var(--space-1);
}

.terms-modal-content .modal-footer {
    margin-top: var(--space-5);
    text-align: center;
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-5);
}

.terms-modal-content .modal-footer button {
    width: auto;
    padding: var(--space-3) var(--space-10);
    margin: 0;
    border-radius: var(--radius-full);
}

/* ============================================
   SUCCESS OVERLAY
   ============================================ */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    animation: fadeIn 0.5s ease;
}

.success-overlay.show {
    display: flex;
}

.success-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: modalBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-success);
}

.success-card .check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: 40px;
    color: white;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
        transform: scale(1.05);
    }
}

.success-card h2 {
    color: var(--gray-800);
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.success-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: var(--space-5);
}

.success-card .btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: 'Poppins', sans-serif;
    width: auto;
    margin: 0;
    box-shadow: var(--shadow-md);
}

.success-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-in forwards;
    z-index: 99999;
    pointer-events: none;
}

@keyframes confettiFall {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100vh) rotate(720deg) scale(0); 
        opacity: 0; 
    }
}

/* ============================================
   LOGIN LINK
   ============================================ */
.login-link {
    margin-top: var(--space-6);
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-5);
}

.login-link a {
    color: var(--primary-700);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
    position: relative;
}

.login-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-success);
    transition: var(--transition-base);
}

.login-link a:hover::after {
    width: 100%;
}

.login-link a:hover {
    color: var(--success-600);
}

/* ============================================
   UPLOAD PROGRESS
   ============================================ */
.upload-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-2);
    display: none;
}

.upload-progress .progress-bar-inner {
    height: 100%;
    background: var(--gradient-success);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.upload-progress.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.btn-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--space-2);
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .register-container {
        padding: var(--space-5) var(--space-4);
        border-radius: var(--radius-xl);
        max-width: 100%;
    }

    .college-title {
        font-size: 1rem;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tvet-intake-row {
        grid-template-columns: 1fr;
    }

    .progress-step {
        font-size: 0.5rem;
        min-width: 50px;
        padding: var(--space-1) var(--space-2);
        flex: 1;
    }

    .progress-step .step-icon {
        font-size: 0.7rem;
    }

    .draft-actions {
        grid-template-columns: 1fr;
    }

    .photo-upload-container {
        flex-direction: column;
        align-items: center;
    }

    .photo-preview {
        width: 100px;
        height: 100px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .student-type-selector {
        grid-template-columns: 1fr;
    }

    .success-card {
        padding: var(--space-6);
    }

    .terms-modal-content {
        padding: var(--space-4);
    }

    .validation-modal-content {
        padding: var(--space-5) var(--space-4);
    }

    .register-container h2 {
        font-size: 1.3rem;
    }

    .register-container h2::after {
        width: 40px;
    }

    .portal-badge {
        font-size: 0.65rem;
        padding: 0.25rem 1rem;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
        padding: var(--space-2);
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--space-2);
    }

    .register-container {
        padding: var(--space-4) var(--space-3);
        border-radius: var(--radius-lg);
    }

    .progress-step {
        font-size: 0.45rem;
        min-width: 40px;
        padding: var(--space-1);
    }

    .progress-step .step-icon {
        font-size: 0.6rem;
    }

    .validation-modal-content .modal-actions {
        flex-direction: column;
    }

    .validation-modal-content .modal-actions button {
        width: 100%;
    }

    .terms-modal-content .modal-header h2 {
        font-size: 1rem;
    }
}
