/* ============================================
   Auth Pages Styles - RefundPro
   ============================================ */

/* Auth Background */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    background: #F1F5F9;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1920&q=80') center/cover no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.auth-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20,184,166,0.06) 0%, rgba(139,92,246,0.06) 100%);
    z-index: 0;
}

/* Auth Card */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 10px 30px -5px rgba(0,0,0,0.1);
    padding: 40px;
    border: 1px solid rgba(226,232,240,0.8);
}

.auth-card--login {
    max-width: 480px;
}

.auth-card--register {
    max-width: 520px;
}

.auth-card--forgot {
    max-width: 450px;
}

/* Card Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14B8A6, #6366F1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(20,184,166,0.3);
}

.auth-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 6px;
}

.auth-header p {
    color: #64748B;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

/* Input Wrapper with Icon */
.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1E293B;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: #14B8A6;
    box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: #14B8A6;
}

.input-wrapper input.is-valid {
    border-color: #10B981;
}

.input-wrapper input.is-invalid {
    border-color: #EF4444;
}

/* Password toggle */
.input-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.input-wrapper .password-toggle:hover {
    color: #14B8A6;
}

/* Validation icon */
.input-wrapper .validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.input-wrapper.has-password-toggle .validation-icon {
    right: 40px;
}

.input-wrapper .validation-icon.show {
    opacity: 1;
}

.input-wrapper .validation-icon.valid {
    color: #10B981;
}

.input-wrapper .validation-icon.invalid {
    color: #EF4444;
}

/* Inline error message */
.field-error {
    display: none;
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
    padding-left: 2px;
}

.field-error.show {
    display: block;
}

/* Password Strength Bar */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar-inner {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar-inner.weak {
    width: 25%;
    background: #EF4444;
}

.strength-bar-inner.medium {
    width: 60%;
    background: #F59E0B;
}

.strength-bar-inner.strong {
    width: 100%;
    background: #10B981;
}

.strength-text {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
    color: #94A3B8;
}

.strength-text.weak { color: #EF4444; }
.strength-text.medium { color: #F59E0B; }
.strength-text.strong { color: #10B981; }

/* Remember Me & Forgot Password Row */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #14B8A6;
    cursor: pointer;
    margin: 0;
}

.checkbox-wrapper label {
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    user-select: none;
}

.forgot-link {
    font-size: 13px;
    color: #14B8A6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #0D9488;
    text-decoration: underline;
}

/* Submit Button */
.auth-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(20,184,166,0.3);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #0D9488, #0F766E);
    box-shadow: 0 4px 12px rgba(20,184,166,0.4);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.auth-divider span {
    padding: 0 14px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-btn:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    transform: translateY(-1px);
}

.social-btn.google:hover { color: #DB4437; border-color: #DB4437; }
.social-btn.facebook:hover { color: #4267B2; border-color: #4267B2; }
.social-btn.twitter:hover { color: #1DA1F2; border-color: #1DA1F2; }

/* Auth Footer Text */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748B;
}

.auth-footer-text a {
    color: #14B8A6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer-text a:hover {
    color: #0D9488;
    text-decoration: underline;
}

/* Terms Checkbox */
.terms-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.terms-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #14B8A6;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-wrapper label {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
}

.terms-wrapper label a {
    color: #14B8A6;
    text-decoration: none;
    font-weight: 500;
}

.terms-wrapper label a:hover {
    text-decoration: underline;
}

/* Back Link */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #14B8A6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: #0D9488;
    text-decoration: underline;
}

/* Alert styles for auth pages */
.auth-card .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-card .alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.auth-card .alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.auth-card .alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0;
    line-height: 1;
}

.auth-card .alert-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-section {
        padding: 100px 12px 40px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .auth-header-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .social-buttons {
        gap: 8px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
