/* Authentication Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(45deg, #ff9a56 0%, #ff6b9d 100%);
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-dark: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 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(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 35px 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #e8e8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.9;
}

/* Auth Container */
.auth-container {
    position: relative;
    margin-bottom: 30px;
}

.auth-step {
    transition: all 0.4s ease;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

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

.form-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.form-description {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Form Styles */
.auth-form {
    position: relative;
    z-index: 1;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
}

.input-field:invalid {
    border-color: var(--error-color);
}

.otp-input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: monospace;
}

.input-error {
    display: block;
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
    min-height: 20px;
}

/* Button Styles */
.submit-btn, .resend-btn, .back-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.submit-btn {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.6);
}

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

.resend-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.resend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

.back-btn {
    background: rgba(108, 117, 125, 0.8);
    color: white;
    margin-bottom: 0;
}

.back-btn:hover {
    background: rgba(108, 117, 125, 1);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* OTP Timer */
.otp-timer {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    font-weight: 600;
    color: #856404;
}

.resend-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Status Message */
.status-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 600;
    z-index: 10000;
    min-width: 300px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.status-message.success {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border: 2px solid var(--success-color);
}

.status-message.error {
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: 2px solid var(--error-color);
}

.status-message.info {
    background: rgba(33, 150, 243, 0.9);
    color: white;
    border: 2px solid #2196F3;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-icon {
    font-size: 1.3rem;
}

/* Info Section */
.info-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.info-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.info-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff9a56;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 5px;
}

/* Step Transitions */
.auth-step {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.auth-step.slide-out-left {
    opacity: 0;
    transform: translateX(-100px);
}

.auth-step.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
}

.auth-step.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 1.8rem;
    }

    .form-card {
        padding: 30px 25px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .input-field {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .submit-btn, .resend-btn, .back-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .status-message {
        min-width: 250px;
        left: 10px;
        right: 10px;
        transform: none;
    }

    .otp-input {
        font-size: 1.3rem;
        letter-spacing: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .title {
        font-size: 1.6rem;
    }

    .form-card {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .resend-section {
        flex-direction: column;
    }

    .info-section {
        padding: 20px;
    }

    .info-section h3 {
        font-size: 1.1rem;
    }

    .info-section li {
        font-size: 0.9rem;
    }
}

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

/* Focus styles for keyboard navigation */
.submit-btn:focus,
.resend-btn:focus,
.back-btn:focus,
.input-field:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .title {
        color: white !important;
        -webkit-text-fill-color: white !important;
    }

    .form-card,
    .info-section {
        border: 2px solid white;
    }

    .input-field {
        border: 2px solid #333;
        background: white;
        color: #333;
    }
}-group {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

