@import url('../global-css/style-base.css');

/* ========== AUTH CONTAINER ========== */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(27, 117, 187, 0.03) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.auth-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.features-preview {
    background: linear-gradient(135deg, var(--blue) 0%, #0f4c81 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.features-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    animation: slide 30s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

/* ========== AUTH HEADER ========== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
}

.logo-img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    position: relative;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), #60a5fa); /* Blue gradient instead of yellow */
    border-radius: 2px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}

/* ========== FORM STYLING ========== */
.auth-forms {
    width: 100%;
    max-width: 400px;
}

.auth-form {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ========== MODERN INPUT WRAPPER WITH FLOATING LABELS ========== */

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background: transparent;
    padding: 0 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1f2937;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-input:focus,
.form-input:not(:placeholder-shown) {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27, 117, 187, 0.08);
    background: #ffffff;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0;
    left: 2.5rem;
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 500;
    background: white;
}

.form-input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--blue);
    transform: translateY(-50%) scale(1.1);
}

.form-input::placeholder {
    color: transparent;
}

/* Enhanced input animations - removed redundant bottom line */

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
    border: 2px solid #e2e8f0; /* Consistent soft border */
    background: transparent;
}

.password-input-wrapper .form-input:focus,
.password-input-wrapper .form-input:not(:placeholder-shown) {
    background: #ffffff;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b; /* Soft gray */
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--blue); /* Blue on hover */
}

/* Input States */
.form-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input.error + .input-icon {
    color: #ef4444;
}

.form-input.success {
    border-color: #10b981; /* Green for success */
    background-color: #f0fdf4;
}

.form-input.success + .input-icon {
    color: #10b981; /* Green icon for success */
}

/* Ensure transparent background is maintained when not focused and empty */
.form-input:not(:focus):placeholder-shown {
    background: transparent;
}

.input-help {
    font-size: 0.8rem;
    color: #64748b; /* Softer help text */
    margin-top: 0.25rem;
    margin-left: 3rem;
}

.input-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
    margin-left: 3rem;
    display: none;
}

.input-error.show {
    display: block;
}

/* ========== PASSWORD STRENGTH INDICATOR ========== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
    background: #dc2626; /* Default red */
}

/* Strength level colors */
.strength-fill.very-weak {
    background: #dc2626; /* Red */
}

.strength-fill.weak {
    background: #ea580c; /* Orange */
}

.strength-fill.medium {
    background: #eab308; /* Yellow */
}

.strength-fill.strong {
    background: #16a34a; /* Green */
}

.strength-fill.very-strong {
    background: #059669; /* Dark green */
}

.strength-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Text colors for different strength levels */
.strength-text.very-weak {
    color: #dc2626;
}

.strength-text.weak {
    color: #ea580c;
}

.strength-text.medium {
    color: #eab308;
}

.strength-text.strong {
    color: #16a34a;
}

.strength-text.very-strong {
    color: #059669;
}



/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4b5563;
    transition: color 0.2s ease;
}

.checkbox-wrapper:hover {
    color: #1f2937;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27, 117, 187, 0.1);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--blue);
    border-color: var(--blue);
    transform: scale(1.05);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease-in-out;
}

@keyframes checkmark {
    0% { opacity: 0; transform: rotate(45deg) scale(0); }
    100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

.checkbox-required {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-text {
    line-height: 1.4;
}

.forgot-link, .terms-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-link:hover, .terms-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--blue) 0%, #0f4c81 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(27, 117, 187, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-submit::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 ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0f4c81 0%, var(--blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27, 117, 187, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled::before {
    display: none;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.form-input.success {
    animation: successPulse 0.6s ease-out;
}

/* Shake Animation for Errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.form-input.error {
    animation: shake 0.6s ease-in-out;
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition-property: transform, box-shadow, border-color, background-color, color;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus Ring for Accessibility */
.form-input:focus-visible,
.btn-submit:focus-visible,
.btn-google:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Form Divider */
.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.form-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* ========== GOOGLE BUTTON ========== */
.btn-google {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-google:hover::before {
    left: 100%;
}

.btn-google:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-google:hover .google-icon {
    transform: scale(1.1);
}



/* Form Notice */
.form-notice {
    background: #fffbeb;
    border: 2px solid var(--yellow);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--yellow);
    border-radius: 2px 0 0 2px;
}

.notice-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notice-icon {
    width: 20px;
    height: 20px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notice-content p {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.4;
    margin: 0;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1rem;
}

.auth-switch {
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}



/* ========== WELCOME SECTION STYLES ========== */
.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.mascot-container {
    margin-bottom: 2.5rem;
    position: relative;
}

.mascot-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.2));
    animation: bounce 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.mascot-image:hover {
    transform: scale(1.05);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mascot-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.welcome-content {
    max-width: 400px;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), #fbbf24);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}



/* Message Container */
.message-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    max-width: 400px;
}

.message-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.message-content.success {
    border-color: var(--yellow);
    background: #fffbeb;
}

.message-content.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.message-text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.message-content.success .message-text {
    color: #92400e;
}

.message-content.error .message-text {
    color: #991b1b;
}

.message-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.message-close:hover {
    color: #374151;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .features-preview {
        order: -1;
        padding: 2rem;
        min-height: 60vh;
    }
    
    .welcome-section {
        justify-content: center;
        padding-top: 2rem;
    }
    
    .mascot-image {
        width: 120px;
        height: 120px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        padding: 1.5rem;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    

    
    .message-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    /* Welcome Section Responsive */
    .features-preview {
        padding: 1.5rem;
        min-height: 50vh;
    }
    
    .mascot-image {
        width: 100px;
        height: 100px;
    }

    .welcome-title {
        font-size: 1.6rem;
    }

    .welcome-subtitle {
        font-size: 0.95rem;
    }
    

}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 1rem;
    }
    
    .form-input {
        padding: 0.75rem 0.875rem 0.75rem 2.75rem;
        border: 2px solid #e2e8f0; /* Consistent soft border on mobile */
    }
    
    .input-icon {
        left: 0.875rem;
        color: #64748b; /* Soft gray on mobile */
    }
    
    .password-input-wrapper .form-input {
        padding-right: 2.75rem;
        border: 2px solid #e2e8f0; /* Consistent border */
    }
    
    .input-help,
    .input-error,
    .strength-text {
        margin-left: 2.75rem;
    }

    /* Welcome Section Mobile */
    .mascot-image {
        width: 100px;
        height: 100px;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }
}

/* Glass Morphism Effects */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    z-index: -1;
}

/* Floating Animation for Form Elements */
.form-group {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Button Ripple Effects */
.btn-submit::after, .btn-google::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:active::after, .btn-google:active::after {
    width: 300px;
    height: 300px;
}

/* Logo Animation */
.logo-img {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Input Focus Enhancement */
.input-wrapper:focus-within {
    transform: translateY(-0.5px);
}

/* Enhanced Password Strength */
.password-strength {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.strength-bar {
    background: #e5e7eb;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Enhanced Message Animation */
.message-container {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Particle Background Effect */
.features-preview::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ========== ADDITIONAL RESPONSIVE ENHANCEMENTS ========== */

@media (max-width: 1200px) {
    .welcome-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 900px) {
    .mascot-image {
        width: 130px;
        height: 130px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
}

/* ========== ACCESSIBILITY & DARK MODE SUPPORT ========== */

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-container {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .auth-wrapper {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .form-input {
        background: transparent;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .form-input:focus,
    .form-input:not(:placeholder-shown) {
        background: #1e293b;
        border-color: var(--blue);
    }
    
    .form-label {
        background: transparent;
        color: #94a3b8;
    }
    
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label {
        background: #1e293b;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }
    
    .btn-submit, .btn-google {
        border: 2px solid;
    }
}

/* Print Styles */
@media print {
    .features-preview,
    .mascot-container {
        display: none;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        background: white;
    }
    
    .auth-wrapper {
        box-shadow: none;
        background: white;
    }
}

/* ========== LOADING STATES ========== */
.btn-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-submit.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Form Group Loading State */
.form-group.loading .input-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray3);
    border-top: 2px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Form Validation States */
.form-group.error .form-input {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group.error .input-error {
    color: #ef4444;
    display: block;
}

.form-group.success .form-input {
    border-color: #10b981;
    background-color: #f0f9ff;
}

.form-group.success .input-wrapper::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    font-size: 14px;
}

/* Input Error Message */
.input-error {
    font-size: 12px;
    margin-top: 4px;
    display: none;
    color: #ef4444;
}

/* Auth Form Animations */
.auth-form {
    transition: all 0.3s ease;
}

.auth-form[style*="display: none"] {
    opacity: 0;
    transform: translateY(20px);
}

.auth-form:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0);
}