/* ملف CSS موحد لصفحات المصادقة */
:root {
    --primary-color: #138275;
    --secondary-color: #0891b2;
    --accent-color: #0d9488;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --light-text: #64748b;
    --gradient-primary: linear-gradient(135deg, #1C9E97 0%, #009577 100%);
    --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--dark-text);
    overflow-x: hidden;
    direction: rtl;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: -1;
}

/* إضافة حماية إضافية من التمرير الأفقي */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 100%;
}

.logo {
    text-align: center;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* إخفاء الشعار أثناء التحميل لمنع الوميض */
    opacity: 0;
    transform: translateY(-10px);
}

/* إظهار الشعار بعد تحميل الإعدادات */
.logo a.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo a i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a:hover {
    transform: scale(1.05);
}

/* تحسين انتقال الشعار المخصص */
.logo a img {
    transition: opacity 0.3s ease;
}

/* Language Switcher Styles */
.language-switcher {
    margin-left: 15px;
}

.language-switcher .form-select {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    background-color: white;
    color: var(--dark-text);
    min-width: 110px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switcher .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(28, 158, 151, 0.25);
    transform: translateY(-1px);
}

.language-switcher .form-select:hover {
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(28, 158, 151, 0.15);
}

/* Responsive adjustments للـ language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
    }
    
    .language-switcher .form-select {
        min-width: 95px;
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Main Container */
.main-container {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 1rem 2rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    min-height: 600px;
    margin: 0 auto;
}

/* تصميم خاص لصفحة forgot-password (مربع واحد فقط) */
.auth-wrapper.single-form {
    max-width: 450px;
    display: block;
    min-height: auto;
}

/* AI Features Slideshow */
.slideshow-container {
    flex: 1;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow {
    height: 100%;
    position: relative;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 400px;
}

.slide-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.slide h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.slide p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
}

/* Auth Form */
.auth-container {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

/* تصميم خاص لصفحة forgot-password */
.auth-wrapper.single-form .auth-container {
    padding: 3rem 2rem;
    max-width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* تصميم خاص لعنوان forgot-password */
.auth-title.forgot-password-title {
    font-size: 1.5rem;
}

.auth-subtitle {
    color: var(--light-text);
    font-size: 1rem;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 0.3rem;
    margin-bottom: 2rem;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: calc(var(--border-radius) - 3px);
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    text-align: center;
}

.tab-button.active,
.tab-button:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.input-group {
    position: relative;
    direction: rtl;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: white;
    color: var(--dark-text);
    direction: rtl;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-control::placeholder {
    color: var(--light-text);
    opacity: 0.7;
}

.input-icon {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--light-text) !important;
    z-index: 10 !important;
    font-size: 1.1rem !important;
    opacity: 1 !important;
    pointer-events: none !important;
    visibility: visible !important;
    display: inline-block !important;
}

.input-group:focus-within .input-icon {
    color: var(--secondary-color) !important;
}

/* Remember me checkbox */
.form-check {
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-label {
    color: var(--dark-text);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Submit Buttons */
.btn-login,
.btn-register {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login:disabled,
.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* أنماط خاصة لزر التسجيل */
.btn-register .normal-text,
.btn-register .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.btn-register .loading {
    display: none !important;
}

/* حالة التحميل */
.btn-register.loading .normal-text {
    display: none !important;
}

.btn-register.loading .loading {
    display: flex !important;
}

/* حماية إضافية - منع عرض العنصرين معاً */
.btn-register .normal-text.hidden {
    display: none !important;
}

.btn-register .loading.visible {
    display: flex !important;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 1rem auto !important;
    width: 100% !important;
    max-width: 304px !important;
    overflow: hidden !important;
}

.g-recaptcha > div {
    margin: 0 auto !important;
    transform-origin: center center !important;
}

/* reCAPTCHA responsive scaling */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85) !important;
        transform-origin: center center !important;
        max-width: 280px !important;
    }
}

@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.75) !important;
        transform-origin: center center !important;
        max-width: 250px !important;
    }
}

@media (max-width: 350px) {
    .g-recaptcha {
        transform: scale(0.65) !important;
        transform-origin: center center !important;
        max-width: 220px !important;
    }
}

/* Google Login */
.google-login {
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--dark-text);
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.google-login:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--dark-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.google-login:active:not(:disabled) {
    transform: translateY(0);
}

.google-logo {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--light-text);
    font-size: 0.9rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* Forgot Password Link */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    direction: ltr;
    unicode-bidi: isolate;
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) / 2);
    display: inline-block;
    margin: 0.25rem;
}

.auth-links a:hover {
    color: var(--primary-color);
    background: rgba(8, 145, 178, 0.1);
}

/* Terms */
.terms-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--light-text);
    line-height: 1.5;
}

.terms-text a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.terms-text a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.alert a {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
    display: inline-block;
    max-width: 100%;
    color: inherit;
    text-decoration: underline;
    margin-top: 0.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* تصميم خاص للتنبيهات الملونة */
.alert-success.gradient {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
}

.alert-danger.gradient {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
    color: white;
}

.alert-warning.gradient {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
    color: white;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    display: block;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.success-text {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

/* Debug Info */
.debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--dark-text);
}

.debug-info strong {
    color: var(--primary-color);
}

/* Loading State */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* نوافذ Modal */
.email-exists-modal,
.wrong-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeInModal 0.3s ease;
}

.email-exists-modal.show,
.wrong-password-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    animation: slideInModal 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* أيقونة للبريد المكرر */
.modal-icon.email-exists {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: var(--warning-color);
}

/* أيقونة لكلمة المرور الخاطئة */
.modal-icon.wrong-password {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: var(--danger-color);
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.modal-description {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.modal-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 158, 151, 0.3);
    color: white;
}

.modal-btn-secondary {
    background: #f8fafc;
    color: var(--dark-text);
    border: 2px solid #e2e8f0;
}

.modal-btn-secondary:hover {
    background: #f1f5f9;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* تأثيرات الحركة للـ Modal */
@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInModal {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
    }
    
    .auth-wrapper {
        flex-direction: column;
        max-width: 100%;
        margin: 0.5rem;
        width: calc(100vw - 1rem);
        box-sizing: border-box;
    }

    /* إخفاء السليدشو على الجوال لتحسين تجربة المستخدم */
    .slideshow-container {
        display: none;
    }

    .auth-container {
        padding: 2rem 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .main-container {
        padding: 80px 0.5rem 1rem;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .form-control {
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-login,
    .btn-register {
        width: 100%;
        box-sizing: border-box;
    }
    
    .g-recaptcha {
        overflow: visible !important;
        padding: 0 15px !important;
        margin: 1rem auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* تصميم navbar للجوال */
    .navbar-collapse {
        margin-top: 15px;
    }

    .mobile-auth-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 15px;
    }

    .mobile-auth-container .language-switcher {
        margin-bottom: 10px;
    }

    .mobile-auth-container .btn-auth {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .auth-wrapper {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .main-container {
        padding: 100px 0.5rem 1rem;
    }

    /* Modal responsive */
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-description {
        font-size: 0.95rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        margin: 0.25rem;
        width: calc(100vw - 0.5rem);
    }
    
    .auth-container {
        padding: 1.5rem 0.75rem;
    }

    .form-control {
        padding: 12px 45px 12px 15px;
        font-size: 16px; /* منع zoom في iOS */
    }

    .btn-login,
    .btn-register {
        padding: 12px;
        font-size: 1rem;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
    
    .main-container {
        padding: 80px 0.25rem 1rem;
    }

    .g-recaptcha {
        transform: scale(0.9) !important;
        transform-origin: center center !important;
        padding: 0 10px !important;
        margin: 1rem auto !important;
    }
}

@media (max-width: 400px) {
    .auth-wrapper {
        margin: 0.125rem;
        width: calc(100vw - 0.25rem);
    }
    
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-title {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 10px 40px 10px 12px;
        font-size: 16px;
    }
    
    .input-icon {
        right: 12px !important;
        font-size: 1rem !important;
    }

    .g-recaptcha {
        transform: scale(0.82) !important;
        padding: 0 5px !important;
    }
}

@media (max-width: 360px) {
    .auth-wrapper {
        margin: 0.125rem;
        width: calc(100vw - 0.25rem);
    }
    
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-title {
        font-size: 1.2rem;
    }
    
    .form-control {
        padding: 10px 40px 10px 12px;
        font-size: 16px;
    }
    
    .input-icon {
        right: 12px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 350px) {
    .g-recaptcha {
        transform: scale(0.75) !important;
        padding: 0 !important;
    }
}

@media (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.7) !important;
        padding: 0 !important;
    }
} 