/* Authentication Page Styles */
/* Place this file in public/css/auth.css */
@font-face { font-family: DroidArabicKufi; src: url('../../assets/fonts/Droid.Arabic.Kufi.ttf'); font-display: swap; }
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

/* RTL specific font support */
[dir="rtl"] .auth-body {
    font-family: 'DroidArabicKufi', sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.auth-header {
    padding: 40px 40px 0;
    text-align: center;
}

.auth-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    position: relative;
}

.auth-toggle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--bs-danger);
    border-radius: 2px;
}

.toggle-btn {
    padding: 12px 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

/* RTL adjustments for toggle buttons */
[dir="rtl"] .toggle-btn {
    text-transform: none;
}

.toggle-btn:hover {
    color: #6b7280;
    text-decoration: none;
}

.toggle-btn.active {
    color: white;
    background: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(90, 128, 255, 0.3);
}

.auth-content {
    padding: 30px 40px 40px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    height: 56px;
    padding-top: 24px;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* RTL input adjustments */
[dir="rtl"] .form-floating input {
    text-align: right;
}

.form-floating input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(90, 128, 255, 0.1);
}

.form-floating label {
    padding: 16px 16px;
    color: #6b7280;
    font-size: 14px;
}

/* RTL label adjustments */
[dir="rtl"] .form-floating label {
    right: 0;
    left: auto;
    transform-origin: right center;
}

[dir="rtl"] .form-floating input:focus~label,
[dir="rtl"] .form-floating input:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    transition: color 0.3s ease;
}

/* RTL password toggle positioning */
[dir="rtl"] .password-toggle {
    right: auto;
    left: 16px;
}

.password-toggle:hover {
    color: var(--bs-primary);
}

.form-check {
    margin-bottom: 24px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    margin-top: 2px;
}

/* RTL checkbox adjustments */
[dir="rtl"] .form-check-input {
    margin-right: 0;
    margin-left: 0.5rem;
}

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

.form-check-label {
    margin-left: 8px;
    color: #4b5563;
    font-size: 14px;
}

/* RTL checkbox label adjustments */
[dir="rtl"] .form-check-label {
    margin-left: 0;
    margin-right: 8px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary2) 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(90, 128, 255, 0.3);
    margin-bottom: 16px;
}

/* RTL button text adjustments */
[dir="rtl"] .btn-auth {
    text-transform: none;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 128, 255, 0.4);
    color: white;
}

.forgot-link {
    display: block;
    text-align: center;
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

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

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 13px;
    position: relative;
}

.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #4b5563;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    transform: translateY(-2px);
}

/* Error states */
.form-floating input.is-invalid {
    border-color: var(--bs-danger);
}

.form-floating input.is-invalid:focus {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    color: var(--bs-danger);
    font-size: 14px;
    margin-top: 5px;
}

/* RTL error message alignment */
[dir="rtl"] .invalid-feedback {
    text-align: right;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-header {
        padding: 30px 30px 0;
    }

    .auth-content {
        padding: 20px 30px 30px;
    }

    .toggle-btn {
        padding: 10px 24px;
        font-size: 12px;
    }
}
