/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Enhanced Background Decorative Elements */
body::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

/* Additional background element */
.App::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

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

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

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* App Container */
.App {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 1;
    position: relative;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Card glow effect */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 20px;
    pointer-events: none;
}

/* Auth Views */
.auth-view {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.auth-view.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

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

.logo-icon span {
    color: white;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
}

.brand-name {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.welcome-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Styles */
.login-form,
.signup-form,
.forgot-form {
    margin-bottom: 20px;
}

/* Signup steps */
.signup-steps .step { display: none; }
.signup-steps { position: relative; overflow: hidden; margin: 10px; }
.signup-steps .step.active { display: block; }
.signup-steps .step { animation-duration: 300ms; animation-timing-function: ease; }

/* Stepper */
.stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px;
}
.stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: opacity 200ms ease, transform 200ms ease;
}
.stepper-item .step-counter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #1e3c72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.stepper-item .step-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.stepper-item.active { opacity: 1; }
.stepper-item.completed .step-counter { background: #1e3c72; color: #fff; }

/* Slide animations (unique names to avoid conflicts) */
@keyframes stepSlideInLeft { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes stepSlideOutLeft { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-20px); opacity: 0; } }
@keyframes stepSlideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes stepSlideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(20px); opacity: 0; } }

.step.slide-in-right { animation-name: stepSlideInRight; }
.step.slide-out-left { animation-name: stepSlideOutLeft; }
.step.slide-in-left { animation-name: stepSlideInLeft; }
.step.slide-out-right { animation-name: stepSlideOutRight; }

.step-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.step-controls #signupSubmitBtn {
    grid-column: span 2;
}

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

/* Signup form: use uniform 10px margins for groups */
#signupForm .input-group {
    margin: 10px;
}

.input-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

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

.input-field i {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 2;
}

.input-field input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Match select styling with inputs */
.input-field select {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #333;
}

.input-field input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    background: white;
}

.input-field select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    background: white;
}

.input-field input::placeholder {
    color: #999;
}

/* Specific styling for password fields with toggle button */
.input-field {
    position: relative;
}

/* Ensure password inputs have proper padding for the eye icon */
input[type="password"] {
    padding-right: 50px !important;
}

/* Password Toggle Button */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.toggle-password:hover {
    color: #1e3c72;
    background: rgba(30, 60, 114, 0.1);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-link {
    color: #1e3c72;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #2a5298;
    text-decoration: underline;
}

/* Sign In Button */
.signin-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.signin-btn:not(:disabled):not(.loading):not(.btn-disabled) {
    cursor: pointer !important;
}

.signin-btn:disabled,
.signin-btn.btn-disabled {
    cursor: not-allowed !important;
}

.signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.signin-btn:hover::before {
    left: 100%;
}

.signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
}

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

/* Email verification buttons - remove button shadow */
#emailVerificationGroup .verification-row .signin-btn,
#emailVerificationGroup .verification-row .signin-btn:hover,
#emailVerificationGroup .verification-row .signin-btn:focus {
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

/* Signup Email Verification section (moved from inline styles) */
#emailVerificationGroup {
    margin-top: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 9998;
}

#emailVerificationGroup > label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 0.95rem;
}

#emailVerificationGroup .otp-input-container {
    margin: 6px 0 10px 0;
}

#emailVerificationGroup .verification-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    position: relative;
    z-index: 9999;
    pointer-events: auto;
    overflow: visible;
    isolation: isolate;
}

#sendSignupOtpBtn {
    background: #0ea5e9;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.9rem;
    height: 40px;
    border-radius: 10px;
}

#verifySignupOtpBtn {
    background: #10b981;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.9rem;
    height: 40px;
    border-radius: 10px;
}

/* Sign Up Section */
.signup-section {
    text-align: center;
    margin-top: 20px;
}

.signup-section p {
    color: #666;
    font-size: 14px;
}

.signup-link {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #2a5298;
    text-decoration: underline;
}

/* Background Effects - Ensure they work without footer */
body::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

/* Additional floating element */
body::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

/* Toaster Component */
.toaster {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #4caf50;
    color: #2e7d32;
}

.toast.error {
    border-left-color: #f44336;
    color: #c62828;
}

.toast.info {
    border-left-color: #1e3c72;
    color: #2a5298;
}

.toast.warning {
    border-left-color: #ff9800;
    color: #ef6c00;
}

.toast i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .brand-name {
        font-size: 28px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon span {
        font-size: 24px;
    }
    

    
    .toaster {
        top: 15px;
        right: 15px;
        left: 15px;
    }
    
    .toast {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .toggle-password {
        padding: 6px;
        font-size: 16px;
        min-width: 28px;
        min-height: 28px;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state for button */
.signin-btn.loading {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.signin-btn.loading span {
    opacity: 0.7;
}

/* Error states */
.input-field.error input {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.input-field.error select {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.input-field.error i {
    color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.input-field.error + .error-message {
    display: block;
}

/* View transitions */
.auth-view.slide-out {
    animation: slideOutRight 0.3s ease-in;
}

.auth-view.slide-in {
    animation: slideInRight 0.3s ease-out;
} 

/* Password requirements animation + strength bar */
.req-ok { color: #2e7d32 !important; }
.req-bad { color: #c62828 !important; }
.req-animate { animation: reqPop 160ms ease-out; }
@keyframes reqPop {
    from { transform: scale(0.96); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}

.password-strength { 
    font-size: 12px; 
    color: #666; 
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strength-track {
    width: 100%; 
    height: 8px; 
    background: #eee; 
    border-radius: 999px; 
    overflow: hidden;
}

.strength-bar {
    height: 100%; 
    width: 0%; 
    background: #f44336; 
    border-radius: 999px; 
    transition: width 300ms ease, background 300ms ease;
}

.strength-label { 
    margin-top: 6px; 
    font-weight: 600; 
    transition: color 0.3s ease;
}

/* Password requirements checklist */
#passwordRequirements {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#passwordRequirements li {
    transition: all 0.3s ease;
    margin-bottom: 2px;
    transform: translateX(0);
    opacity: 1;
}

/* Terms and Privacy Policy Styles */
.terms-privacy-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
}

.terms-privacy-container:first-of-type {
    margin-top: 8px;
}

.terms-privacy-container:not(:first-of-type) {
    margin-top: 6px;
}

.terms-text {
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    cursor: pointer;
    font-weight: 400;
}

.terms-link {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 12px;
}

.terms-link:hover {
    color: #2a5298;
    text-decoration: underline;
}

/* reCAPTCHA Status Indicator Styles */
.recaptcha-status-container {
    margin: 10px 0;
    padding: 8px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 6px;
    border: 1px solid #3b82f6;
}

.recaptcha-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recaptcha-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    flex-shrink: 0;
}

.recaptcha-info {
    flex: 1;
}

.recaptcha-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 1px;
}

.recaptcha-status {
    color: #bfc9da;
    font-size: 10px;
}

.recaptcha-score {
    color: #10b981;
    font-weight: bold;
    font-size: 10px;
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 3% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 85%;
    max-width: 700px;
    max-height: 85%;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    color: #1e3c72;
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #1e3c72;
}

.modal-body {
    line-height: 1.7;
    color: #555;
}

.modal-body h3 {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.modal-instruction {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

.understand-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.understand-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.understand-btn:hover::before {
    left: 100%;
}

.understand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

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

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 90%;
        border-radius: 16px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .close {
        font-size: 28px;
    }
    
    .modal-body h3 {
        font-size: 16px;
    }
    
    .modal-body p {
        font-size: 13px;
    }
    
    .understand-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* Toast Notification Styles */
.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.toast-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* Enhanced Terms Acceptance States */
.terms-text.terms-accepted {
    color: #10b981;
    font-weight: 600;
    transition: all 0.3s ease;
}

.terms-text.terms-accepted .terms-link {
    color: #059669;
    font-weight: 600;
}

/* Button States */
.btn-enabled {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Override cursor when button is enabled (not disabled) - must be more specific than .btn-disabled */
.signin-btn:not(:disabled):not(.btn-disabled):not(.loading),
.signin-btn.btn-enabled:not(:disabled):not(.btn-disabled),
.signin-btn:not(:disabled).btn-enabled {
    cursor: pointer !important;
}

/* Ensure enabled button always shows pointer cursor - highest specificity */
#signupSubmitBtn:not(:disabled):not(.btn-disabled),
#signupSubmitBtn.btn-enabled:not(:disabled),
#signupSubmitBtn.btn-enabled:not(:disabled):hover,
#signupSubmitBtn.signin-btn.btn-enabled:not(:disabled),
button#signupSubmitBtn.btn-enabled:not(:disabled),
button#signupSubmitBtn.signin-btn.btn-enabled:not(:disabled) {
    cursor: pointer !important;
}

/* Force pointer cursor on hover for enabled button */
#signupSubmitBtn.btn-enabled:hover,
#signupSubmitBtn:not(:disabled):not(.btn-disabled):hover {
    cursor: pointer !important;
}

/* Progress Indicator */
.progress-indicator {
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

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

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Toast Styles */
.toast-icon {
    margin-right: 8px;
    font-weight: bold;
}

.toast-message {
    flex: 1;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* Loading State */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Focus Management */
.modal-content:focus-within {
    outline: none;
}

.understand-btn:focus {
    outline: 2px solid #1e3c72;
    outline-offset: 2px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .modal.modal-opening .modal-content,
    .modal.modal-closing .modal-content,
    .modal.modal-opening,
    .modal.modal-closing {
        animation: none;
    }
    
    .terms-checkbox.checkbox-accepted {
        transform: none;
    }
    
    .progress-indicator::after {
        animation: none;
    }
}

/*OTP VERIFICATION STYLES*/
/* OTP Header */
.otp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.otp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
    animation: pulse 2s infinite;
}

.otp-icon i {
    font-size: 2rem;
    color: white;
}

.otp-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.otp-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.otp-email {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.otp-instruction {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* OTP Input Container */
.otp-input-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.otp-inputs {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.otp-digit {
    width: 40px;
    height: 40px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
}

/* Signup OTP boxes reuse the same style */
.signup-otp-digit {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    padding: 0;
}

.otp-digit:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: scale(1.05);
}

.signup-otp-digit:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: scale(1.05);
}

.otp-digit:not(:placeholder-shown) {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.05);
}

.signup-otp-digit.filled {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.otp-digit::placeholder {
    color: #bdc3c7;
    font-size: 1.2rem;
}

/* OTP digit filled state */
.otp-digit.filled {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* OTP digit error state */
.otp-digit.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* OTP Actions */
.otp-actions {
    margin-top: 2rem;
    text-align: center;
}

.otp-timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.timer-icon {
    color: #3498db;
    font-size: 1.1rem;
}

.otp-timer {
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
    font-size: 0.95rem;
}

.otp-timer span {
    color: #e74c3c;
    font-weight: 600;
}

.resend-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    pointer-events: none;
}

.resend-btn:not(:disabled) {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    opacity: 1;
    pointer-events: auto;
}

.resend-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.resend-btn i {
    font-size: 0.9rem;
}

/* ========================================
   RESET PASSWORD STYLES
======================================== */

/* Reset Header */
.reset-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reset-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.3);
    animation: pulse 2s infinite;
}

.reset-icon i {
    font-size: 2rem;
    color: white;
}

.reset-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.reset-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #f1c40f, #2ecc71);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
    text-align: center;
}

/* Password Requirements */
.password-requirements {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.password-requirements h4 {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    color: #27ae60;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(74, 144, 226, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .otp-icon,
    .reset-icon {
        width: 60px;
        height: 60px;
    }
    
    .otp-icon i,
    .reset-icon i {
        font-size: 1.5rem;
    }
    
    .otp-header h2,
    .reset-header h2 {
        font-size: 1.5rem;
    }
    
    .otp-digit {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .otp-inputs {
        gap: 0.5rem;
    }
    
    .otp-email {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .password-requirements {
        padding: 1rem;
    }
    
    .requirement-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .otp-actions {
        margin-top: 1.5rem;
    }
    
    .otp-timer-container {
        padding: 0.75rem;
    }
    
    .resend-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .otp-digit {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .otp-inputs {
        gap: 0.4rem;
    }

    /* Responsive: signup OTP boxes */
    .signup-otp-digit {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px;
        font-size: 0.95rem;
    }
}