/* fullzuhq Light Theme - Clean & Professional */
/* Theme Colors: Light #f8fafc, Blue #2563eb, Green #22c55e */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
}

/* Auth Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.auth-page {
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

/* Subtle Background Effects */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.auth-page::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float1 20s ease-in-out infinite;
}

.auth-page::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float2 25s ease-in-out infinite;
}

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

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

/* Container */
.auth-container {
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Card */
.auth-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header */
.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: #6b7280;
}

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

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

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.auth-required {
    color: #ef4444;
}

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

.auth-input {
    width: 100%;
    padding: 12px 16px !important;
    padding-left: 48px !important;
    background: #f8fafc !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937 !important;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-input:focus {
    outline: none;
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    color: #6b7280;
    font-size: 16px;
    pointer-events: none;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    font-size: 16px;
}

.auth-password-toggle:hover {
    color: #2563eb;
}

.auth-help-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

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

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    background: #f8fafc;
    border: 1px solid #d1d5db;
}

.auth-checkbox-label {
    color: #6b7280;
    cursor: pointer;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-link-bold {
    font-weight: 600;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.auth-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

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

.auth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn-loading {
    display: none;
}

.auth-btn.loading .auth-btn-text {
    display: none;
}

.auth-btn.loading .auth-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Footer */
.auth-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #d1d5db;
    text-align: center;
}

.auth-footer-text {
    font-size: 14px;
    color: #6b7280;
    margin-right: 6px;
}

/* Alerts */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
}

.auth-alert i {
    font-size: 16px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

.auth-alert-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
    border-color: rgba(234, 179, 8, 0.3);
}

/* Password Strength */
.auth-password-strength {
    margin-top: 8px;
}

.auth-strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.auth-strength-fill {
    height: 100%;
    width: 0;
    background: #ef4444;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.auth-strength-text {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

/* Error Messages */
.auth-error-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
}

/* Animations */
.auth-shake {
    animation: shake 0.5s ease-in-out;
}

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

/* Responsive */
@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .auth-input {
        padding: 12px 14px !important;
        padding-left: 44px !important;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .auth-btn {
        padding: 13px;
        font-size: 15px;
    }

    .auth-form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Focus States for Accessibility */
.auth-btn:focus-visible,
.auth-input:focus-visible,
.auth-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}