/* Common Auth Pages Styles */

.auth-page-wrapper {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 20px 0;
}

.auth-background-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.auth-container {
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    padding: 40px;
}

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

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.auth-form {
    margin-top: 24px;
}

.form-group-modern {
    margin-bottom: 24px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.label-icon {
    color: #667eea;
    font-size: 1.1rem;
}

.field-wrapper {
    margin: 0;
}

.form-input-modern {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
    color: #0f172a;
}

.form-input-modern:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input-modern.input-valid {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.05);
}

.form-input-modern.input-invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    animation: shake 0.5s ease;
}

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

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.auth-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.auth-submit-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

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

.button-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-submit-button.loading .button-content {
    display: none;
}

.auth-submit-button.loading .button-loader {
    display: flex;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.auth-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-footer-text {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-link:hover {
    color: #764ba2;
}

.otp-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

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

.otp-inputs-wrapper {
    margin: 32px 0;
}

.otp-input {
    width: 100%;
    padding: 20px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
    color: #0f172a;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.otp-timer-wrapper {
    text-align: center;
    margin: 24px 0;
    color: #64748b;
    font-size: 0.95rem;
}

#timer {
    font-weight: 700;
    color: #667eea;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
}

