/* Complete Modernized Organisation Registration Styles */
:root {
    /* Color System */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-900: #312e81;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success-50: #ecfdf5;
    --success-500: #10b981;
    --error-50: #fef2f2;
    --error-500: #ef4444;
    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Animations */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

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

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-50) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--gray-900);
    line-height: 1.5;
}

/* Main Layout */
.register-main {
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 85vh;
    display: flex;
}

.register-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 15px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: stretch;
    min-height: 80vh;
    border-radius: 0;
}

@media (min-width: 1024px) {
    .register-container {
        grid-template-columns: 5fr 7fr;
        gap: var(--space-4);
        min-height: 85vh;
    }
}

/* ========================================
   HERO SECTION (Desktop Only)
   ======================================== */
.hero-section {
    position: relative;
    background: #010080;
    color: white;
    padding: var(--space-16) var(--space-8);
    border-radius: 0;
    overflow: hidden;
    text-align: center;
    min-height: 100vh;
    display: none; /* Hidden by default on mobile */
    align-items: center;
    justify-content: center;
    flex: 1;
}

@media (min-width: 1024px) {
    .hero-section {
        display: flex; /* Show on desktop */
        min-height: auto;
        height: 100%;
        flex: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    margin-bottom: var(--space-6);
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-3xl));
    font-weight: 700;
    margin: 0 0 var(--space-4) 0;
    color: #00ffea;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 var(--space-8) 0;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    align-items: center;
    margin-top: var(--space-6);
}

@media (min-width: 480px) {
    .hero-features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-4);
    }
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 10px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-out);
}

.feature-chip:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.3);
}

.chip-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #10b981;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.3);
}

.chip-text {
    color: white;
}

/* Hero Decorations - Desktop Only */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: none !important;
}

@media (min-width: 1024px) {
    .hero-decoration {
        display: block !important;
    }
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: min(300px, 35vw);
    height: min(300px, 35vw);
    top: -10%;
    right: -10%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: min(200px, 25vw);
    height: min(200px, 25vw);
    bottom: -8%;
    left: -8%;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: min(150px, 20vw);
    height: min(150px, 20vw);
    top: 40%;
    left: -5%;
    animation: float 10s ease-in-out infinite;
}

.circle-4 {
    width: min(180px, 22vw);
    height: min(180px, 22vw);
    top: 20%;
    right: 30%;
    animation: float 12s ease-in-out infinite reverse;
    opacity: 0.6;
}

.circle-5 {
    width: min(120px, 15vw);
    height: min(120px, 15vw);
    bottom: 25%;
    right: -3%;
    animation: float 9s ease-in-out infinite;
    opacity: 0.8;
}

.circle-6 {
    width: min(160px, 18vw);
    height: min(160px, 18vw);
    top: 60%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
    opacity: 0.7;
}

.circle-7 {
    width: min(140px, 16vw);
    height: min(140px, 16vw);
    top: 5%;
    left: 20%;
    animation: float 11s ease-in-out infinite reverse;
    opacity: 0.5;
}

@media (min-width: 1024px) {
    .circle-1 {
        width: 400px;
        height: 400px;
        top: -20%;
        right: -20%;
    }
    
    .circle-2 {
        width: 300px;
        height: 300px;
        bottom: -15%;
        left: -15%;
    }
    
    .circle-3 {
        width: 220px;
        height: 220px;
        top: 30%;
        left: -10%;
    }
    
    .circle-4 {
        width: 280px;
        height: 280px;
        top: 10%;
        right: 20%;
    }
    
    .circle-5 {
        width: 200px;
        height: 200px;
        bottom: 15%;
        right: -8%;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ========================================
   FORM SECTION
   ======================================== */
.form-section {
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
}

.form-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: 0;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.3) 50%,
        transparent
    );
    z-index: 1;
}

/* ========================================
   STEPPER
   ======================================== */
.stepper-wrapper {
    padding: var(--space-8) var(--space-8) 0 var(--space-8);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 250, 252, 0.8) 100%
    );
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    list-style: none;
    margin: 0 0 var(--space-8) 0;
    position: relative;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.stepper-item:hover:not(.disabled) {
    transform: translateY(-2px);
}

.stepper-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.stepper-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 3px solid var(--gray-200);
    position: relative;
    transition: all 0.3s var(--ease-out);
    z-index: 2;
}

.stepper-item .num {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-400);
    transition: all 0.3s var(--ease-out);
}

.stepper-item .check-icon {
    display: none;
    color: white;
}

.stepper-item.is-active .stepper-circle {
    background: #010080;
    border-color: #010080;
    box-shadow: 0 0 0 4px rgba(1, 0, 128, 0.1);
    transform: scale(1.1);
}

.stepper-item.is-active .num {
    color: white;
}

.stepper-item.is-done .stepper-circle {
    background: var(--success-500);
    border-color: var(--success-500);
}

.stepper-item.is-done .num {
    display: none;
}

.stepper-item.is-done .check-icon {
    display: block;
}

.stepper-item .label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.stepper-item.is-active .label {
    color: #010080;
    font-weight: 700;
}

.stepper-item.is-done .label {
    color: var(--success-500);
}

/* Stepper Dividers */
.stepper-divider {
    flex: 1;
    height: 3px;
    background: var(--gray-200);
    margin: 0 var(--space-2);
    position: relative;
    top: -24px;
    transition: all 0.3s var(--ease-out);
}

.stepper-item.is-done + .stepper-divider {
    background: var(--success-500);
}

.stepper-item.is-active + .stepper-divider {
    background: linear-gradient(90deg, #010080 0%, var(--gray-200) 100%);
}

/* ========================================
   WIZARD STEPS
   ======================================== */
.wizard-step {
    display: none;
    padding: var(--space-8);
    animation: fadeIn 0.3s var(--ease-out);
}

.wizard-step.is-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.step-title {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--gray-900) 0%, #010080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-subtitle {
    font-size: var(--font-size-base);
    color: var(--gray-500);
    margin: 0;
    font-weight: 400;
}

/* ========================================
   MESSAGES
   ======================================== */
.messages-container {
    margin: 0;
    padding: 0 var(--space-8);
    position: relative;
    z-index: 2;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    border: none;
    margin-bottom: var(--space-3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.alert:last-child {
    margin-bottom: 0;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: rgba(236, 253, 245, 0.9);
    color: var(--success-500);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.alert-error,
.alert-danger {
    background: rgba(254, 242, 242, 0.9);
    color: var(--error-500);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.alert-warning {
    background: rgba(255, 251, 235, 0.9);
    color: var(--warning-500);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.alert ul {
    margin: var(--space-2) 0 0 0;
    padding-left: var(--space-4);
}

.alert li {
    margin-bottom: var(--space-1);
}

/* ========================================
   INFO BANNER
   ======================================== */
.info-banner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(145deg, rgba(1, 0, 128, 0.05) 0%, rgba(1, 0, 128, 0.03) 100%);
    border: 2px solid rgba(1, 0, 128, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #010080;
}

.info-banner p {
    margin: 0;
    color: var(--gray-700);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.info-banner strong {
    color: #010080;
    font-weight: 600;
}

/* ========================================
   FORM GRID & GROUPS
   ======================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
    
    .form-group.full-width {
        grid-column: 1 / -1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-6);
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
    position: relative;
}

.form-label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #010080, var(--primary-600));
    transition: width 0.3s var(--ease-out);
    border-radius: 1px;
}

.form-group:focus-within .form-label::after {
    width: 100%;
}

.label-icon {
    color: #010080;
    flex-shrink: 0;
}

.required {
    color: #010080;
    font-weight: 700;
    margin-left: 2px;
}

/* ========================================
   INPUT STYLES
   ======================================== */
.input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    border: 2px solid #c0c0c0;
    transition: all 0.3s var(--ease-out);
    overflow: hidden;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 100%
    );
    border-radius: inherit;
    z-index: -1;
}

.input-wrapper:focus-within {
    border-color: #010080;
    box-shadow: 
        0 0 0 4px rgba(1, 0, 128, 0.08),
        0 8px 25px -5px rgba(1, 0, 128, 0.1);
    transform: translateY(-2px);
}

.input-wrapper.error {
    border-color: var(--error-500);
    box-shadow: 
        0 0 0 4px rgba(239, 68, 68, 0.08),
        0 8px 25px -5px rgba(239, 68, 68, 0.1);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    background: transparent;
    transition: all 0.3s var(--ease-out);
    appearance: none;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
    font-family: var(--font-family);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.form-input.error,
.form-textarea.error {
    background: rgba(254, 242, 242, 0.7);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.input-hint {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

#slug-preview {
    color: #010080;
    font-weight: 600;
}

.field-error {
    font-size: var(--font-size-xs);
    color: var(--error-500);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(254, 242, 242, 0.8);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--error-500);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.field-error::before {
    content: '⚠';
    font-size: var(--font-size-sm);
    color: var(--error-500);
}

/* ========================================
   PASSWORD FIELD
   ======================================== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    padding: var(--space-2);
    color: var(--gray-500);
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease-out);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.password-toggle:hover {
    color: #010080;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.password-toggle:focus {
    outline: 2px solid #010080;
    outline-offset: 2px;
}

.eye-icon {
    display: block;
    transition: all 0.2s var(--ease-out);
}

.eye-closed {
    display: none;
}

/* ========================================
   INVITE METHOD TOGGLE
   ======================================== */
.invite-method-toggle {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    justify-content: center;
}

.method-radio {
    display: none;
}

.method-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: 2px solid #c0c0c0;
    border-radius: var(--radius-xl);
    background: white;
    color: var(--gray-500);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.method-btn:hover {
    border-color: #010080;
    color: #010080;
    transform: translateY(-2px);
}

.method-radio:checked + .method-btn {
    border-color: #010080;
    background: #010080;
    color: white;
    box-shadow: 0 4px 12px rgba(1, 0, 128, 0.2);
}

.invite-content {
    margin-top: var(--space-4);
}

/* ========================================
   SKIP MESSAGE
   ======================================== */
.skip-message {
    text-align: center;
    padding: var(--space-8);
    background: linear-gradient(145deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.skip-icon {
    margin: 0 auto var(--space-4);
    color: var(--success-500);
}

.skip-message h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.skip-message p {
    color: var(--gray-500);
    margin: 0;
}

/* ========================================
   ROLE SELECTION
   ======================================== */
.role-selection-group {
    margin-top: var(--space-6);
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.role-card {
    position: relative;
    border: 2px solid #c0c0c0;
    border-radius: var(--radius-xl);
    background: white;
    transition: all 0.3s var(--ease-out);
    overflow: hidden;
}

.role-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.role-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-card-label {
    display: block;
    padding: var(--space-5);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.role-radio:checked + .role-card-label {
    background: linear-gradient(145deg, rgba(1, 0, 128, 0.05) 0%, rgba(1, 0, 128, 0.03) 100%);
}

.role-card:has(.role-radio:checked) {
    border-color: #010080;
    box-shadow: 0 0 0 3px rgba(1, 0, 128, 0.1);
}

.role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.role-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
}

.recommended-badge {
    background: var(--success-500);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-description {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: 1.4;
}

/* ========================================
   RECRUITER SUB-OPTION
   ======================================== */
.recruiter-option {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: rgba(1, 0, 128, 0.03);
    border-top: 1px solid rgba(1, 0, 128, 0.1);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    display: none;
    animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    transition: all 0.3s var(--ease-out);
    position: relative;
    margin-top: 2px;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: #010080;
    border-color: #010080;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.checkbox-content strong {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
}

.checkbox-hint {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    line-height: 1.4;
}

.role-hint {
    margin-top: var(--space-4);
}

/* ========================================
   SETUP SUMMARY
   ======================================== */
.setup-summary {
    background: linear-gradient(145deg, rgba(1, 0, 128, 0.05) 0%, rgba(1, 0, 128, 0.03) 100%);
    border: 1px solid rgba(1, 0, 128, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-8);
}

.setup-summary h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.setup-summary ul {
    margin: 0;
    padding-left: var(--space-5);
    color: var(--gray-500);
}

.setup-summary li {
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #010080;
    z-index: -2;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: #010080;
    color: #fff;
    box-shadow:
        0 10px 25px -5px rgba(1, 0, 128, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: transform 0.45s var(--ease-out), opacity 0.25s var(--ease-out);
    z-index: -1;
}

.btn-primary:hover:not(:disabled) {
    color: #fff;
    box-shadow:
        0 20px 40px -10px rgba(1, 0, 128, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:hover:not(:disabled)::before {
    background: #000066;
}

.btn-primary:hover:not(:disabled)::after {
    opacity: 0.8;
    transform: translateX(220%) skewX(-20deg);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #c0c0c0;
    color: var(--gray-500);
}

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover {
    border-color: #010080;
    color: #010080;
    background: rgba(1, 0, 128, 0.05);
    transform: translateY(-2px);
}

.btn .btn-text {
    color: inherit;
}

.btn .btn-loading {
    display: none;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading {
    display: block;
    animation: spin 1s linear infinite;
}

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

.btn.loading {
    pointer-events: none;
    transform: none !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   FORM ACTIONS & LINKS
   ======================================== */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(248, 250, 252, 0.8) 100%
    );
}

.form-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-8);
    font-size: var(--font-size-sm);
}

.form-links span {
    color: var(--gray-500);
}

.link {
    color: #010080;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s var(--ease-out);
    position: relative;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

.link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #010080, var(--primary-600));
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.2s var(--ease-out);
    z-index: -1;
}

.link:hover {
    color: white;
    transform: translateY(-1px);
}

.link:hover::before {
    opacity: 1;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media(max-width: 1366px){
    aside .card{
    padding: 10px !important;
  }
  .sidebar-header,
  .sidebar-list{
    padding: 5px !important;
  }
  .ai-powered-badge{
    margin:0 !important;
    width: 100%;
    font-size: 12px !important;
    justify-content: center;
  }
}
@media (max-width: 1023.98px) {
    .hero-section {
        display: none !important;
    }
    
    .register-container {
        padding: 0 !important;
    }
    #main-content .container-fluid .col-md-10,
    #main-content .container-fluid .col-md-2{
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0 5px !important;
    }
}

@media (max-width: 768px) {
    .register-main {
        align-items: flex-start !important;
        padding-top: 0 !important;
    }
    
    .register-container {
        min-height: auto !important;
        padding: 0 !important;
    }
    
    .form-section {
        min-height: auto !important;
    }
    .sidebar-adverts{
        margin: 15px 0;
    }
    .role-card{
        padding: 15px !important;
    }
    .role-icon-wrapper{
       width: 50px;
       height: 50px;
    }
    .card-arrow{
        top:20px;
    }
     .role-title{
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 640px) {
    .register-main {
        padding: var(--space-2);
    }
    
    .form-container {
        border-radius: var(--radius-xl);
        box-shadow: 
            0 20px 40px -10px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .stepper-wrapper {
        padding: var(--space-6) var(--space-4) 0 var(--space-4);
    }
    
    .stepper {
        flex-direction: row;
        gap: var(--space-2);
    }
    
    .stepper-item {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
    }
    
    .stepper-divider {
        display: none;
    }
    
    .stepper-circle {
        width: 24px;
        height: 24px;
    }
    
    .stepper-item .num {
        font-size: var(--font-size-xs);
    }
    
    .stepper-item .label {
        font-size: var(--font-size-xs);
        text-align: left;
    }
    
    .wizard-step {
        padding: var(--space-6) var(--space-4);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        padding: var(--space-4);
    }
    
    .btn {
        width: 100%;
    }

    .invite-method-toggle {
        flex-direction: column;
    }

    .method-btn {
        text-align: center;
        justify-content: center;
    }
    
    .info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .role-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

@media (max-width: 480px) {
    .register-main {
        padding: var(--space-1);
        padding-top: var(--space-4);
    }
    
    .form-container {
        border-radius: var(--radius-lg);
    }
    
    .stepper-wrapper {
        padding: var(--space-4) var(--space-3) 0 var(--space-3);
    }
    
    .wizard-step {
        padding: var(--space-4) var(--space-3);
    }
    
    .step-title {
        font-size: var(--font-size-xl);
    }
    
    .step-subtitle {
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .decoration-circle {
        animation: none;
    }
}

/* Focus improvements */
.form-input:focus,
.form-textarea:focus,
.btn:focus,
.password-toggle:focus,
.link:focus {
    outline: 2px solid #010080;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .decoration-circle,
    .btn,
    .form-actions {
        display: none !important;
    }
    
    .form-container {
        box-shadow: none;
        border: 2px solid #000;
        background: white;
        backdrop-filter: none;
    }
}