/* Modern Authentication Pages - Clean Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Modern Animated Background */
body.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -3;
}

body.auth-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(68, 160, 141, 0.15) 0%, transparent 50%),
        conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.06), rgba(255,255,255,0) 30%);
    animation: gradientShift 20s ease-in-out infinite;
    z-index: -2;
}

/* Modern Background Elements */
.modern-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 12s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.3), rgba(68, 160, 141, 0.3));
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 20%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 25%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.2), rgba(102, 126, 234, 0.2));
    border-radius: 30%;
    animation-delay: 4s;
}

.shape-4 {
    bottom: 15%;
    right: 15%;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, rgba(118, 75, 162, 0.3), rgba(78, 205, 196, 0.3));
    border-radius: 50%;
    animation-delay: 6s;
}

.shape-5 {
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgba(68, 160, 141, 0.2), rgba(102, 126, 234, 0.2));
    border-radius: 40%;
    animation-delay: 1s;
}

/* Abstract Wave Elements */
.wave-element {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    animation: waveMotion 10s linear infinite;
}

.wave-1 {
    top: 30%;
    left: 5%;
    animation-delay: 0s;
}

.wave-2 {
    bottom: 40%;
    right: 10%;
    animation-delay: 3s;
}

.wave-3 {
    top: 60%;
    left: 70%;
    animation-delay: 6s;
}

/* Particle-like Elements */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle-1 { top: 20%; left: 25%; animation-delay: 0s; }
.particle-2 { top: 40%; left: 75%; animation-delay: 3s; }
.particle-3 { top: 70%; left: 30%; animation-delay: 6s; }
.particle-4 { top: 80%; left: 80%; animation-delay: 9s; }
.particle-5 { top: 15%; left: 60%; animation-delay: 12s; }

/* Animation Keyframes */
@keyframes gradientShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(78, 205, 196, 0.14) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(68, 160, 141, 0.14) 0%, transparent 50%),
            conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.06), rgba(255,255,255,0) 30%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.18) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(68, 160, 141, 0.18) 0%, transparent 50%),
            conic-gradient(from 360deg at 50% 50%, rgba(255,255,255,0.06), rgba(255,255,255,0) 30%);
    }
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    33% {
        transform: translateY(-30px) rotate(120deg) scale(1.1);
        opacity: 0.15;
    }
    66% {
        transform: translateY(20px) rotate(240deg) scale(0.9);
        opacity: 0.08;
    }
}

@keyframes waveMotion {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.05;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.1;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-50px) translateX(20px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) translateX(-15px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-70px) translateX(30px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(0px);
        opacity: 0;
    }
}

/* Main Auth Container */
.auth-container {
    width: 100%;
    max-width: 1200px; /* Increased from 900px for wider layout */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Alerts pinned to top of auth container */
.auth-messages {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 12px 16px;
    pointer-events: none; /* allow clicks through except alert itself */
}
.auth-messages .alert {
    margin: 0 auto;
    max-width: 960px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    pointer-events: auto;
}
.auth-messages .alert-success { border: 1px solid rgba(40, 167, 69, 0.35); }
.auth-messages .alert-danger, .auth-messages .alert-error { border: 1px solid rgba(220, 53, 69, 0.35); }
.auth-messages .alert-warning { border: 1px solid rgba(255, 193, 7, 0.45); }
.auth-messages .alert-info { border: 1px solid rgba(23, 162, 184, 0.35); }

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    display: flex;
    min-height: 600px; /* Increased height for better proportions */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Left Panel - Branding */
.auth-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.brand-content {
    width: 100%;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.4;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.welcome-text {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.5;
}

.auth-switch {
    margin-top: 20px;
}

.switch-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.switch-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Right Panel - Form */
.auth-right-panel {
    flex: 1.5; /* Increased flex ratio for wider form area */
    padding: 60px 50px; /* Increased horizontal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-content {
    width: 100%;
    max-width: 600px; /* Increased from 400px for wider forms */
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #718096;
}

/* Social Login */
.social-login {
    text-align: center;
    margin-bottom: 25px;
}

.social-text {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn.google {
    color: #db4437;
}

.social-btn.facebook {
    color: #4267b2;
}

.social-btn.microsoft {
    color: #00a1f1;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 15px;
    font-size: 0.85rem;
    color: #718096;
    position: relative;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    z-index: 2;
    font-size: 1rem;
    pointer-events: none;
    width: 20px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 15px 48px 15px 75px; /* right padding for password toggle */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control::placeholder {
    color: #a0aec0;
    opacity: 1;
    padding-left: 0;
}

.form-control:focus {
    outline: none;
    border-color: #4ECDC4;
    background: white;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

/* Select dropdown styling to match input fields */
select.form-control {
    padding: 15px 40px 15px 88px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    min-height: 48px;
    line-height: 1.25;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

select.form-control:hover {
    border-color: #cfd4da;
}

select.form-control:disabled {
    background-color: #f7fafc;
    color: #a0aec0;
    cursor: wait;
    opacity: 0.65;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239aa0a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

select.form-control option {
    padding: 10px;
    background: white;
    color: #2d3748;
}

/* Placeholder-style for empty selection */
select.form-control:required:invalid {
    color: #a0aec0;
}
select.form-control option[disabled],
select.form-control option[value=""] {
    color: #a0aec0;
}

/* Ensure grouped selects have proper left spacing with icons */
.input-group select.form-control {
    padding-left: 88px;
}

/* Select2 (Bootstrap4 theme) — make borders visible and match inputs */
.select2-container--bootstrap4 .select2-selection--single {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    background-color: #f8f9fa !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 12px 40px 12px 16px !important;
    line-height: 24px !important;
}

/* Text rendering inside selection */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: #2d3748 !important;
    line-height: 24px !important;
    padding-left: 0 !important;
}

/* Placeholder style */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: #a0aec0 !important;
}

/* Arrow placement and subtle recolor */
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    right: 12px !important;
    height: 100% !important;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
}

/* Focus ring and accent color */
.select2-container--bootstrap4.select2-container--focus .select2-selection,
.select2-container--bootstrap4 .select2-selection:focus {
    outline: none !important;
    border-color: #667eea !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18) !important;
}

/* Hover feedback */
.select2-container--bootstrap4 .select2-selection--single:hover {
    border-color: #cfd4da !important;
}

/* Disabled state */
.select2-container--bootstrap4.select2-container--disabled .select2-selection--single {
    background-color: #f7fafc !important;
    border-color: #e9ecef !important;
    color: #a0aec0 !important;
    opacity: 0.65 !important;
}
.select2-container--bootstrap4.select2-container--disabled .select2-selection__arrow b {
    border-color: #9aa0a6 transparent transparent transparent !important;
}

/* Inside input groups with left icons — add left padding */
.input-group .select2-container--bootstrap4 .select2-selection--single {
    padding-left: 88px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 2;
}

.password-toggle:hover {
    color: #4ECDC4;
}

.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4a5568;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    position: relative;
}

.forgot-link {
    color: #4ECDC4;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    color: #44A08D;
    text-decoration: underline;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

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

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer p {
    font-size: 0.9rem;
    color: #718096;
}

.form-footer a {
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    color: #44A08D;
    text-decoration: underline;
}

/* Multi-Step Form Styles */
.multi-step-form {
    width: 100%;
}

.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    transition: width 0.3s ease;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.step-title {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-align: center;
}

.step.active .step-title {
    color: #2d3748;
    font-weight: 600;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.step-header p {
    font-size: 0.9rem;
    color: #718096;
}

/* Form Grid */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-col.half {
    flex: 0 0 48%;
}

/* File Upload */
.file-upload-container {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-container:hover {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.05);
}

.file-upload-container.dragover {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
}

.upload-icon {
    font-size: 2rem;
    color: #a0aec0;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.8rem;
    color: #718096;
}

.file-input {
    display: none;
}

/* Image Preview */
.image-preview {
    margin-top: 20px;
    text-align: center;
}

.preview-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #edf2f7;
    color: #2d3748;
    transform: translateY(-1px);
}

.btn-next {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

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

/* Terms and Conditions */
.terms-container {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.terms-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.terms-content {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4a5568;
    padding-right: 10px;
}

.terms-content::-webkit-scrollbar {
    width: 4px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #4ECDC4;
    border-radius: 2px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.terms-checkbox label {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
    cursor: pointer;
}

/* Review Step */
.review-section {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.review-value {
    font-size: 0.9rem;
    color: #2d3748;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Enhanced Form Styling for Wider Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row .form-group.col-md-6 {
    flex: 0 0 calc(50% - 10px);
}

/* Enhanced Input Styling */
.form-control {
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .auth-left-panel {
        padding: 40px 30px;
        min-height: 200px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .auth-right-panel {
        padding: 40px 30px;
        flex: 1.5;
    }
    
    .form-content {
        max-width: 600px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .social-buttons {
        gap: 10px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-col.half {
        flex: 1;
    }
    
    .form-row .form-group.col-md-6 {
        flex: 1;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step {
        flex: 1;
        min-width: 80px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .step-title {
        font-size: 0.7rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide some background elements on mobile for performance */
    .rotc-background .cadet-silhouette:nth-child(n+4) {
        display: none;
    }
    
    .marching-cadets .marching-cadet:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 10px;
    }
    
    .auth-left-panel {
        padding: 30px 20px;
    }
    
    .auth-right-panel {
        padding: 30px 20px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .progress-bar::before {
        display: none;
    }
    
    .progress-line {
        display: none;
    }
    
    .step {
        min-width: 60px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .step-title {
        font-size: 0.6rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4ECDC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Validation Styles */
.form-control.is-valid {
    border-color: #38a169;
    background-color: rgba(56, 161, 105, 0.05);
}

.form-control.is-invalid {
    border-color: #e53e3e;
    background-color: rgba(229, 62, 62, 0.05);
}

.valid-feedback {
    color: #38a169;
    font-size: 0.8rem;
    margin-top: 5px;
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Success Messages */
.alert-success {
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid rgba(56, 161, 105, 0.2);
    color: #38a169;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Error Messages */
.alert-danger {
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.2);
    color: #e53e3e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.welcome-content {
    position: relative;
    z-index: 3;
    max-width: 400px;
}

.rotcmis-branding {
    margin-bottom: 2rem;
}

.rotcmis-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.rotcmis-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.welcome-message {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.welcome-actions {
    text-align: center;
}

.switch-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.welcome-btn:hover {
    background: white;
    color: #44a08d;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Welcome Decoration */
.welcome-decoration {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    z-index: 1;
}

.decoration-circle {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.decoration-circle::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.decoration-dots {
    position: absolute;
    top: 50px;
    right: 50px;
    display: flex;
    gap: 10px;
}

.decoration-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

.decoration-dots span:nth-child(2) {
    animation-delay: 0.5s;
}

.decoration-dots span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Form Section (Right Side) */
.form-section {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.form-container {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-description {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Social Login */
.social-login {
    text-align: center;
    margin-bottom: 2rem;
}

.social-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn.google {
    color: #db4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn.microsoft {
    color: #00a1f1;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: currentColor;
}

/* Divider */
.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider-text {
    background: white;
    padding: 0 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Form Styling */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 48px 12px 75px; /* ensure space for left icon and right toggle */
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #6c757d;
    width: 50px;
    justify-content: center;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding-left: 75px; /* prevent overlap with .input-icon */
}

.input-group:focus-within .input-group-text {
    border-color: #667eea;
    background: white;
    color: #667eea;
}

.input-group:focus-within .form-control {
    border-color: #667eea;
}

.password-toggle {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    background: #e9ecef;
    color: #495057;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.3);
    background: linear-gradient(135deg, #4e9a2a 0%, #96d4b8 100%);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Remember Me */
.form-check {
    margin: 1.5rem 0;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
    border: 2px solid #e9ecef;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Links */
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.login-link {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Registration Multi-Step Form */
.step-progress {
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

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

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step.active::after {
    background: #667eea;
}

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

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-weight: 500;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Form Steps */
.form-step {
    display: none !important;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.form-step.active {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    animation: fadeInUp 0.5s ease;
}

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

.step-content {
    margin-bottom: 2rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.step-navigation .btn {
    flex: 1;
    max-width: 150px;
}

/* Profile Upload */
.profile-upload-section {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-container {
    position: relative;
    display: inline-block;
}

.upload-preview {
    width: 120px;
    height: 120px;
    border: 3px dashed #e9ecef;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-preview:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-preview i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* Terms Section */
.terms-section {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
    }
    
    .welcome-section {
        padding: 2rem;
        min-height: 300px;
    }
    
    .rotcmis-title {
        font-size: 2.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 2rem;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        flex: none;
        width: calc(50% - 0.5rem);
    }
    
    .step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-page-container {
        padding: 1rem;
    }
    
    .auth-card {
        border-radius: 15px;
        margin: 1rem 0;
    }
    
    .welcome-section,
    .form-section {
        padding: 1.5rem;
    }
    
    .rotcmis-title {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .social-buttons {
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .step-navigation .btn {
        max-width: none;
    }
    
    .step-indicator {
        justify-content: center;
    }
    
    .step {
        width: calc(25% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .welcome-section {
        min-height: 250px;
    }
    
    .rotcmis-title {
        font-size: 1.8rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Focus States and Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Print Styles */
@media print {
    .auth-background,
    .loading-overlay {
        display: none;
    }
    
    .auth-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




