/* Auth Pages Styling */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.auth-section::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header .logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--dark);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--dark);
}

.auth-header p {
    color: var(--secondary);
    margin-bottom: 0;
    font-size: 1rem;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form .form-group {
    margin-bottom: 0;
    position: relative;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    background-color: var(--white);
}

.auth-form .form-group input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-form .form-group input.success {
    border-color: var(--success);
}

.auth-form .form-group .input-icon {
    position: absolute;
    right: 18px;
    top: 48px;
    color: var(--gray);
    font-size: 1.1rem;
    pointer-events: none;
}

.auth-form .form-group .toggle-password {
    position: absolute;
    right: 18px;
    top: 48px;
    color: var(--gray);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.auth-form .form-group .toggle-password:hover {
    color: var(--primary);
}

/* Error Message */
.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.alert.show {
    display: flex;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert i {
    font-size: 1.2rem;
}

/* Submit Button */
.auth-form .btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-form .btn-submit .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.auth-form .btn-submit.loading .spinner {
    display: block;
}

.auth-form .btn-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-me span {
    font-size: 0.9rem;
    color: var(--secondary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid #e2e8f0;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
}

.social-btn:hover {
    border-color: var(--gray);
    background: var(--light);
}

.social-btn img {
    width: 22px;
    height: 22px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar .strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak { width: 25%; background: var(--error); }
.strength-fill.fair { width: 50%; background: #f59e0b; }
.strength-fill.good { width: 75%; background: #3b82f6; }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Terms Checkbox */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-check label {
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.5;
}

.terms-check a {
    color: var(--primary);
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-container {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.6rem;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
