/* Authentication Pages Styles - Two Column Layout */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent touch gestures - no zoom, no pan */
    touch-action: pan-y;
    -ms-touch-action: pan-y;
    /* Prevent text selection on body */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

/* Allow text selection in inputs and textareas */
input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent double-tap zoom on buttons and links */
a, button, .btn {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

/* Prevent image drag on mobile */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .auth-wrapper {
        width: 100%;
        overflow-x: hidden;
    }
    
    .auth-left,
    .auth-right {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Prevent elements from overflowing */
    .auth-form-container,
    .auth-form-header,
    .form-control,
    .btn,
    .alert {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Main Container - Two Column Layout */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Branding & Info */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-logo {
    margin-bottom: 3rem;
    flex-shrink: 0;
}

.auth-logo img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.auth-logo-text i {
    font-size: 2rem;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.auth-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.auth-info p {
    font-size: 1.125rem;
    line-height: 1.75;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.auth-features {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    opacity: 0.92;
    transition: all 0.25s ease;
    padding: 0.75rem 0;
}

.auth-features li:hover {
    opacity: 1;
    transform: translateX(6px);
}

.auth-features li i {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    text-align: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-copyright {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.6875rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Right Side - Form */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: var(--bg-white);
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent pull-to-refresh and overscroll */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* On mobile, remove overflow to prevent double scroll */
@media (max-width: 768px) {
    .auth-right {
        overflow-y: visible;
        align-items: flex-start;
        padding-top: 1rem;
    }
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

/* On mobile, remove max-height to allow natural flow */
@media (max-width: 768px) {
    .auth-form-container {
        max-height: none;
    }
}

.auth-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
}

.auth-form-logo {
    margin-bottom: 0.875rem;
    position: relative;
    z-index: 1;
}

.auth-form-logo img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.auth-form-logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    letter-spacing: -0.015em;
    background: white;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-form-logo-text i {
    font-size: 1.625rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
}

.auth-form-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 400;
    position: relative;
    z-index: 1;
    max-width: 320px;
    margin: 0 auto;
}

/* Form Styles */
.auth-form {
    margin-top: 0.5rem;
    flex: 1;
    overflow-y: visible;
    min-height: 0;
}

/* On mobile, remove all overflow to prevent double scroll */
@media (max-width: 768px) {
    .auth-form {
        overflow-y: visible;
        margin-top: 0.25rem;
    }
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
    display: block;
    text-align: left;
    direction: ltr;
    unicode-bidi: embed;
}

/* When Arabic is selected, labels align right and flow RTL */
.form-label[dir="rtl"],
.form-label[style*="direction: rtl"],
.form-label[style*="text-align: right"] {
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
    writing-mode: horizontal-tb !important;
}

/* Force RTL for Arabic text content inside labels */
.form-label[dir="rtl"] span,
.form-label[dir="rtl"] * {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: isolate !important;
}



/* Arabic text flows right-to-left */
[data-translate][dir="rtl"],
[data-translate][style*="direction: rtl"] {
    direction: rtl !important;
    text-align: right !important;
}

/* English text flows left-to-right */
[data-translate][dir="ltr"],
[data-translate][style*="direction: ltr"] {
    direction: ltr !important;
    text-align: left !important;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Auth Input - RTL/LTR Support */
.auth-input {
    text-align: inherit;
}

.auth-input[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

.auth-input[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

/* Password Toggle Button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-color);
}

.password-toggle-btn i {
    font-size: 0.875rem;
}

/* Placeholder alignment */
.auth-input[dir="rtl"]::placeholder {
    text-align: right;
    direction: rtl;
}

.auth-input[dir="ltr"]::placeholder {
    text-align: left;
    direction: ltr;
}

.form-control.is-valid {
    border-color: var(--secondary-color);
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-danger {
    background: white;
    color: #dc3545;
    border: 1.5px solid #dc3545;
    width: 100%;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

.btn-outline-secondary {
    background: white;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    width: 100%;
}

.btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline-primary {
    background: white;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    width: 100%;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
}

/* Alerts */
.alert {
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border: none;
    font-size: 0.75rem;
    text-align: left;
    direction: ltr;
}

/* Alert RTL support for Arabic */
.alert[dir="rtl"],
.alert[style*="direction: rtl"] {
    text-align: right !important;
    direction: rtl !important;
}

.alert span[data-translate],
.alert p[data-translate] {
    direction: inherit;
    text-align: inherit;
}

/* Alert icon positioning for RTL */
.alert[dir="rtl"],
.alert[style*="direction: rtl"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert[dir="rtl"] i,
.alert[style*="direction: rtl"] i {
    order: 2;
    margin-left: 0.5rem;
    margin-right: 0;
}

.alert[dir="ltr"] i,
.alert[style*="direction: ltr"] i {
    order: 1;
    margin-right: 0.5rem;
    margin-left: 0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid var(--secondary-color);
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

.alert-primary {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-links p {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Password Match Feedback */
#passwordMatchFeedback {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

#passwordMatchFeedback small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Design */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .auth-wrapper {
        flex-direction: column;
    }
    
    .auth-left {
        min-height: 40vh;
        padding: 2rem;
    }
    
    .auth-info h2 {
        font-size: 2rem;
    }
    
    .auth-info p {
        font-size: 1rem;
    }
    
    .auth-right {
        padding: 2rem 1.5rem;
    }
}

/* Mobile and small tablets (768px) */
@media (max-width: 768px) {
    .auth-left {
        min-height: 25vh;
        padding: 1rem 1.5rem;
    }
    
    .auth-left-content {
        max-width: 100%;
    }
    
    .auth-logo {
        margin-bottom: 0.75rem;
    }
    
    .auth-logo-text {
        font-size: 1.25rem;
    }
    
    .auth-logo-text i {
        font-size: 1.5rem;
    }
    
    .auth-info {
        margin-top: 0.5rem;
    }
    
    .auth-info h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .auth-info p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    
    .auth-features {
        display: none;
    }
    
    .auth-copyright {
        margin-top: 0.75rem;
        font-size: 0.6875rem;
        padding-top: 0.5rem;
    }
    
    .auth-right {
        padding: 0.75rem 1rem;
    }
    
    .auth-form-container {
        max-width: 100%;
        padding: 0.5rem 0;
    }
    
    .auth-form-header {
        padding: 0.875rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .auth-form-logo {
        margin-bottom: 0.5rem;
    }
    
    .auth-form-logo-text {
        font-size: 1rem;
        padding: 0.25rem 0.625rem;
        margin-top: 0.25rem;
    }
    
    .auth-form-logo-text i {
        font-size: 1.125rem;
    }
    
    .auth-form-title {
        font-size: 1.25rem;
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .auth-form-subtitle {
        font-size: 0.75rem;
        max-width: 100%;
        line-height: 1.4;
    }
    
    .auth-form {
        margin-top: 0.25rem;
    }
    
    .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.625rem 0.75rem;
        font-size: 0.9375rem;
    }
    
    .btn {
        padding: 0.6875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .alert {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }
    
    .auth-links {
        margin-top: 1rem;
        font-size: 0.8125rem;
    }
    
    .auth-links p {
        margin-bottom: 0.5rem;
    }
    
    .divider {
        margin: 1rem 0;
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .password-input-wrapper .form-control {
        padding-right: 2.5rem;
    }
    
    .password-toggle-btn {
        right: 0.375rem;
        padding: 0.5rem;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem;
    }
    
    .form-check {
        margin-bottom: 0.5rem;
    }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
    .auth-left {
        min-height: 20vh;
        padding: 0.75rem 1rem;
    }
    
    .auth-logo {
        margin-bottom: 0.5rem;
    }
    
    .auth-logo-text {
        font-size: 1.125rem;
    }
    
    .auth-logo-text i {
        font-size: 1.375rem;
    }
    
    .auth-info {
        margin-top: 0.5rem;
    }
    
    .auth-info h2 {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }
    
    .auth-info p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .auth-copyright {
        margin-top: 0.5rem;
        font-size: 0.625rem;
        padding-top: 0.5rem;
    }
    
    .auth-copyright p {
        line-height: 1.3;
    }
    
    .auth-right {
        padding: 0.5rem 0.75rem;
    }
    
    .auth-form-container {
        padding: 0.25rem 0;
    }
    
    .auth-form-header {
        padding: 0.75rem 0.625rem;
        margin-bottom: 0.5rem;
    }
    
    .auth-form-logo {
        margin-bottom: 0.375rem;
    }
    
    .auth-form-logo-text {
        font-size: 0.9375rem;
        padding: 0.25rem 0.5rem;
        margin-top: 0;
    }
    
    .auth-form-logo-text i {
        font-size: 1rem;
    }
    
    .auth-form-title {
        font-size: 1.125rem;
        margin-top: 0.375rem;
        margin-bottom: 0.125rem;
    }
    
    .auth-form-subtitle {
        font-size: 0.6875rem;
        line-height: 1.3;
    }
    
    .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.5625rem 0.625rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
    }
    
    .btn i {
        font-size: 0.8125rem;
    }
    
    .alert {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .alert i {
        font-size: 0.8125rem;
        margin-right: 0.375rem;
    }
    
    .auth-links {
        margin-top: 0.75rem;
        font-size: 0.75rem;
    }
    
    .auth-links p {
        margin-bottom: 0.375rem;
    }
    
    .auth-links a {
        font-size: 0.75rem;
    }
    
    .divider {
        margin: 0.75rem 0;
        font-size: 0.6875rem;
        padding: 0.375rem 0;
    }
    
    .form-check {
        margin-bottom: 0.375rem;
    }
    
    .form-check-label {
        font-size: 0.75rem;
    }
    
    .mb-3 {
        margin-bottom: 0.375rem;
    }
    
    .password-input-wrapper .form-control {
        padding-right: 2rem;
    }
    
    .password-toggle-btn {
        right: 0.25rem;
        padding: 0.375rem;
    }
    
    .password-toggle-btn i {
        font-size: 0.75rem;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .auth-left {
        min-height: 18vh;
        padding: 0.5rem 0.75rem;
    }
    
    .auth-logo {
        margin-bottom: 0.375rem;
    }
    
    .auth-logo-text {
        font-size: 1rem;
    }
    
    .auth-logo-text i {
        font-size: 1.25rem;
    }
    
    .auth-info {
        margin-top: 0.375rem;
    }
    
    .auth-info h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .auth-info p {
        font-size: 0.6875rem;
        line-height: 1.3;
    }
    
    .auth-copyright {
        margin-top: 0.375rem;
        font-size: 0.5625rem;
        padding-top: 0.375rem;
    }
    
    .auth-right {
        padding: 0.375rem 0.5rem;
    }
    
    .auth-form-container {
        padding: 0.125rem 0;
    }
    
    .auth-form-header {
        padding: 0.625rem 0.5rem;
        margin-bottom: 0.375rem;
    }
    
    .auth-form-logo {
        margin-bottom: 0.25rem;
    }
    
    .auth-form-logo-text {
        font-size: 0.875rem;
        padding: 0.1875rem 0.4375rem;
    }
    
    .auth-form-logo-text i {
        font-size: 0.9375rem;
    }
    
    .auth-form-title {
        font-size: 1rem;
        margin-top: 0.25rem;
        margin-bottom: 0.125rem;
    }
    
    .auth-form-subtitle {
        font-size: 0.625rem;
    }
    
    .form-label {
        font-size: 0.6875rem;
        margin-bottom: 0.1875rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.5rem 0.5625rem;
        font-size: 0.8125rem;
    }
    
    .btn {
        padding: 0.5625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .alert {
        padding: 0.5625rem 0.625rem;
        font-size: 0.6875rem;
        margin-bottom: 0.375rem;
    }
    
    .mb-3 {
        margin-bottom: 0.3125rem;
    }
    
    .form-check {
        margin-bottom: 0.3125rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Ensure buttons are large enough for touch */
    .btn {
        min-height: 44px; /* iOS recommended touch target size */
        min-width: 44px;
    }
    
    /* Better spacing for touch targets */
    .auth-links a {
        display: inline-block;
        padding: 0.5rem 0;
        min-height: 44px;
        line-height: 44px;
    }
    
    /* Improve form input touch targets */
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    /* Better checkbox/radio touch targets */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.125rem;
    }
    
    /* Improve password toggle button */
    .password-toggle-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better alert spacing */
    .alert {
        margin-bottom: 1rem;
    }
    
    /* Improve divider spacing */
    .divider {
        margin: 1.5rem 0;
    }
    
    /* Better gap for button groups */
    .d-grid.gap-2 {
        gap: 0.75rem !important;
    }
    
    /* Improve Google login button on mobile */
    .btn-outline-danger {
        min-height: 48px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .auth-left {
        min-height: 25vh;
        padding: 1rem;
    }
    
    .auth-logo {
        margin-bottom: 0.75rem;
    }
    
    .auth-info {
        margin-top: 0.5rem;
    }
    
    .auth-info h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .auth-info p {
        font-size: 0.8125rem;
    }
    
    .auth-copyright {
        margin-top: 0.75rem;
        font-size: 0.625rem;
    }
    
    .auth-right {
        padding: 1rem 0.75rem;
    }
    
    .auth-form-container {
        padding: 0.5rem 0;
    }
    
    .auth-form-header {
        padding: 1rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .auth-form-title {
        font-size: 1.25rem;
        margin-top: 0.5rem;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .auth-wrapper {
    direction: rtl;
}

[dir="rtl"] .form-check-input {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .auth-features li {
    flex-direction: row-reverse;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-container {
    animation: fadeInUp 0.5s ease-out;
}

/* Language Switcher */
.auth-language-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.auth-language-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    border-color: var(--primary-color);
}

.auth-language-btn:active {
    transform: scale(0.95);
}

.auth-language-btn i {
    transition: transform 0.3s ease;
}

.auth-language-btn:hover i {
    transform: scale(1.2);
}

/* Language dropdown (optional - if you want to show current language) */
.auth-language-current {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    color: var(--text-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.auth-language-current:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
}

.auth-language-current span {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.auth-language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-language-flag .fi {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    display: inline-block;
    background-size: cover;
    background-position: center;
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .auth-language-switcher {
        top: 1rem;
        right: 1rem;
    }
    
    .auth-language-btn {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
    
    .auth-language-current {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-language-switcher {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .auth-language-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .auth-language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .auth-language-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }
}

/* Utility Classes */
.mb-3 {
    margin-bottom: 0.75rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.d-grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

/* Admin Pending Verification Page - Compact Design */
.admin-pending-verification {
    text-align: center;
    padding: 1.5rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.admin-pending-icon {
    margin-bottom: 1.25rem;
}

.admin-pending-icon .icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.admin-pending-icon .icon-wrapper i {
    font-size: 2rem;
    color: #f59e0b;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.admin-pending-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.admin-pending-message {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.admin-pending-info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.admin-pending-info-card .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.admin-pending-info-card .info-item:not(:last-child) {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}

.admin-pending-info-card .info-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.admin-pending-info-card .info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-pending-info-card .info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-pending-info-card .info-value {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
    word-break: break-word;
}

.admin-pending-info-card .badge-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-pending-note {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.admin-pending-note i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.admin-pending-note p {
    font-size: 0.8125rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

.admin-pending-actions {
    margin-top: 1rem;
}

.admin-pending-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-pending-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Admin Verification Info in Login Alert */
.admin-verification-info {
    margin-top: 0.5rem;
}

.admin-verification-info p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.admin-verification-info .small {
    font-size: 0.8125rem;
}

.admin-verification-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.admin-verification-info i {
    color: var(--primary-color);
    margin-right: 0.375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-pending-verification {
        padding: 1rem 0;
    }
    
    .admin-pending-icon .icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .admin-pending-icon .icon-wrapper i {
        font-size: 1.75rem;
    }
    
    .admin-pending-title {
        font-size: 1.25rem;
    }
    
    .admin-pending-message {
        font-size: 0.8125rem;
        padding: 0;
    }
    
    .admin-pending-info-card {
        padding: 0.875rem;
    }
    
    .admin-pending-info-card .info-item i {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
    
    .admin-pending-note {
        padding: 0.75rem;
    }
    
    .admin-pending-note p {
        font-size: 0.75rem;
    }
    
    .admin-verification-info {
        margin-top: 0.375rem;
    }
    
    .admin-verification-info .small {
        font-size: 0.75rem;
    }
}