/* fullzfasa Light Theme - Login & Registration */

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

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

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

/* Container */
.auth-container {
    max-width: 420px;
    width: 100%;
}

/* Card */
.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    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: #1a1a1a;
    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: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a !important;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-input:focus {
    outline: none;
    background: #ffffff !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 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: #9ca3af;
    font-size: 16px;
    pointer-events: none;
}

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

.auth-password-toggle:hover {
    color: #22c55e;
}

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

/* 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: #22c55e;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

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

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

.auth-link:hover {
    color: #16a34a;
    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: #22c55e;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.auth-btn-primary:hover {
    background: #16a34a;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
    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 #e5e7eb;
    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: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

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

.auth-alert-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    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 #22c55e;
    outline-offset: 2px;
}
