/* ===== PROFESSIONAL UNIVERSITY REGISTRATION FORM STYLES ===== */

:root {
    /* GAFAC Brand Colors */
    --primary-blue: #1E88E5;
    --secondary-blue: #0D47A1;
    --light-blue: #E3F2FD;
    --accent-blue: #42A5F5;
    --dark-blue: #0A2E5C;
    
    /* Professional Palette */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --text-gray: #495057;
    --dark-gray: #343A40;
    --success-green: #28A745;
    --warning-orange: #FFC107;
    --danger-red: #DC3545;
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    min-height: 100vh;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-blue);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== MAIN CONTAINER ===== */
.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.registration-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

/* ===== HEADER SECTION ===== */
.registration-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: var(--spacing-xxl) var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.university-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.registration-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.registration-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 0;
}

.academic-year-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    margin-top: var(--spacing-md);
    backdrop-filter: blur(10px);
}

/* ===== WIZARD NAVIGATION ===== */
.wizard-navigation {
    background: var(--light-gray);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--medium-gray);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.step-item {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--medium-gray);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-item.active .step-number {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.2);
}

.step-item.completed .step-number {
    background: var(--success-green);
    color: var(--white);
}

.step-label {
    margin-left: var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    display: none;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--medium-gray);
    margin: 0 var(--spacing-md);
    transition: background-color 0.3s ease;
}

.step-item.completed + .step-item .step-connector {
    background: var(--success-green);
}

@media (min-width: 768px) {
    .step-label {
        display: block;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* ===== FORM SECTIONS ===== */
.form-content {
    padding: 2rem 1.5rem !important;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    margin: var(--spacing-lg) auto;
    border-radius: var(--radius-sm);
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    display: block;
    font-size: 0.95rem;
}

.required-field::after {
    content: ' *';
    color: var(--danger-red);
    font-weight: bold;
}

/* ===== FORM CONTROLS ===== */
.form-control,
.custom-select {
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-gray);
    height: auto;
    min-height: 48px;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
    outline: none;
    background: var(--white);
}

.form-control:hover,
.custom-select:hover {
    border-color: var(--accent-blue);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

/* Textarea specific styles */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* File input styles */
input[type="file"].form-control {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--light-gray);
    border-style: dashed;
}

input[type="file"].form-control:hover {
    background: var(--light-blue);
    border-color: var(--primary-blue);
}

/* ===== FORM VALIDATION ===== */
.form-control.is-valid {
    border-color: var(--success-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.94-2.94.94.94-3.88 3.88z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: var(--danger-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.valid-feedback {
    color: var(--success-green);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.invalid-feedback {
    color: var(--danger-red);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ===== CARDS ===== */
.choice-card {
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: var(--white);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.choice-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.choice-card.selected {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    padding: var(--spacing-lg);
    border: none;
}

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header h2::before {
    content: '';
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body {
    padding: var(--spacing-xl);
}

/* ===== PASSWORD STRENGTH INDICATOR ===== */
.password-strength {
    margin-top: var(--spacing-sm);
}

.password-strength-bar {
    height: 4px;
    background: var(--medium-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

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

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

.strength-good .password-strength-fill {
    width: 75%;
    background: var(--accent-blue);
}

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

.password-strength-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== INPUT GROUPS ===== */
.input-group-append .btn {
    border: 2px solid var(--medium-gray);
    border-left: none;
    background: var(--light-gray);
    color: var(--text-gray);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: all 0.3s ease;
}

.input-group-append .btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--text-gray);
}

.btn-secondary:hover {
    background: var(--text-gray);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
}

.btn-nav {
    min-width: 120px;
}

/* ===== SECURITY NOTICE ===== */
.security-notice {
    background: linear-gradient(135deg, var(--light-blue), rgba(30, 136, 229, 0.1));
    border: 1px solid rgba(30, 136, 229, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: flex-start;
}

.security-notice .icon {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-right: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.security-notice .content h4 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.security-notice .content p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .registration-container {
        padding: var(--spacing-md);
    }
    
    .form-content {
        padding: var(--spacing-lg);
    }
    
    .registration-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .steps-container {
        padding: 0 var(--spacing-md);
    }
    
    .step-connector {
        margin: 0 var(--spacing-sm);
    }
    
    .form-navigation {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .btn-nav {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .registration-header {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .registration-title {
        font-size: 1.8rem;
    }
    
    .registration-subtitle {
        font-size: 1rem;
    }
    
    .form-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.form-control:focus,
.btn:focus,
.custom-select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0056b3;
        --secondary-blue: #003d82;
        --text-gray: #000000;
        --medium-gray: #666666;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .registration-header,
    .wizard-navigation,
    .form-navigation,
    .security-notice {
        display: none;
    }
    
    .registration-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .form-content {
        padding: 1rem;
    }
}

/* ===== PROFESSIONAL WIZARD NAVIGATION CONTROLS ===== */
.wizard-navigation-controls {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid var(--medium-gray);
    padding: var(--spacing-xl) var(--spacing-xxl);
    margin-top: var(--spacing-xl);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.navigation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    gap: var(--spacing-xl);
}

/* Navigation Sections */
.nav-left, .nav-right {
    flex: 0 0 auto;
    min-width: 160px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Professional Wizard Buttons */
.btn-wizard {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text-gray);
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

.btn-wizard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-wizard:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Previous Button Styling */
.btn-wizard-prev {
    border-color: #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.btn-wizard-prev:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary-blue);
}

.btn-wizard-prev:hover i {
    color: var(--primary-blue);
    transform: translateX(-3px);
}

/* Next Button Styling */
.btn-wizard-next {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1976d2 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-wizard-next:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
    color: var(--white);
}

.btn-wizard-next:hover i {
    transform: translateX(3px);
}

/* Submit Button Styling */
.btn-wizard-submit {
    border-color: var(--success-green);
    background: linear-gradient(135deg, var(--success-green) 0%, #218838 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-wizard-submit:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: var(--white);
}

/* Button Content Layout */
.btn-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-wizard-prev .btn-text {
    align-items: flex-end;
}

.btn-label {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    margin-bottom: 2px;
}

.btn-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-wizard i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* Progress Info Center Section */
.progress-info {
    text-align: center;
    min-width: 200px;
}

.step-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.current-step {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue) 0%, #e3f2fd 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-blue);
}

.step-separator {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.total-steps {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
}

/* Progress Bar */
.progress-bar-container {
    margin: var(--spacing-md) 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--medium-gray);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.step-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-top: var(--spacing-sm);
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    .wizard-navigation-controls {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .navigation-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .nav-left, .nav-right {
        width: 100%;
        min-width: auto;
    }
    
    .btn-wizard {
        width: 100%;
        justify-content: center;
        min-height: 50px;
        padding: var(--spacing-md);
    }
    
    .nav-center {
        order: -1;
        width: 100%;
    }
    
    .progress-info {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .btn-label {
        display: none;
    }
    
    .btn-title {
        font-size: 0.9rem;
    }
    
    .current-step {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .step-counter {
        gap: var(--spacing-xs);
    }
}

