/* Modern Login Page Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --surface-color: #ffffff;
    --text-color: #2d3748;
    --text-secondary: #718096;
    --input-bg: #f7fafc;
    --input-border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background: #f5f7fa;
    min-height: 100vh;
    font-family: 'Tajawal', sans-serif !important;
    margin: 0;
    overflow-x: hidden;
}

/* Hide original background bubbles if they interfere, or style them better */
.bg-bubbles {
    display: none !important;
}

.auth-page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px 15px;
    position: relative;
}





.account-wrapper {
    background: var(--surface-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 999;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-header {
    text-align: center;
    margin-bottom: 30px;
}

[dir="rtl"] .account-header {
    text-align: center;
}


.site-logo {
    width: auto !important;
    height: auto !important;
    margin: 60px auto 30px auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.site-logo img {
    max-height: 45px;
    /* Reduced to ~45px */
    margin-bottom: 0;
    position: static !important;
    /* Reset position from style.css */
    top: auto !important;
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-base-color, #764ba2) !important;
    margin: 0;
}

.sub-title span {
    color: var(--admin-base-color, #764ba2) !important;
    text-transform: none !important;
}


[dir="rtl"] .sub-title {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800;
}



/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: right;
    /* Maintain RTL/Arabic alignment preference if needed, otherwise LTR */
}

/* Adjust for LTR if the site is English usually, but user asked in Arabic. 
   Assuming standard bootstrap behavior. The input is LTR usually for emails. */

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid #adb5bd;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #000 !important;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.form-group input:focus {
    background: #fff;
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.show-pass {
    position: absolute;
    top: 42px;
    /* Adjusted based on label height */
    right: 15px;
    /* Or left if RTL */
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
}

[dir="rtl"] .show-pass {
    right: auto;
    left: 15px;
}

/* Forgot Password */
.forgot-item {
    text-align: right;
    /* Or left */
    margin-top: -10px;
    margin-bottom: 20px;
}

[dir="ltr"] .forgot-item {
    text-align: right;
}

[dir="rtl"] .forgot-item {
    text-align: right;
    /* Align to the start in Arabic */
}


.forgot-item a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-item a:hover {
    color: #667eea;
}

/* Button */
.btn--base {
    background: var(--primary-gradient) !important;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn--base:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
    color: white;
}

.btn--base:active {
    transform: translateY(0);
}

/* Alerts */
.alert-danger {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Single OTP Input Styling */
.otp-single {
    width: 100%;
    text-align: center;
    font-size: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 12px;
    padding: 12px !important;
    border: 1px solid var(--input-border) !important;
    border-radius: var(--radius-md) !important;
    background: var(--input-bg) !important;
    transition: all 0.3s ease;
}

.otp-single:focus {
    border-color: var(--admin-base-color, #667eea) !important;
    box-shadow: 0 0 0 3px rgba(var(--admin-base-color-rgb, 102, 126, 234), 0.1) !important;
    background: #fff !important;
    outline: none;
}

[dir="rtl"] .otp-single {
    letter-spacing: 12px;
}

.otp-single::placeholder {
    font-size: 1.1rem !important;
    color: var(--text-secondary, #718096) !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    opacity: 0.8;
}
/* Or Area */
.or-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
    gap: 10px;
}

.or-line {
    flex-grow: 1;
    height: 1px;
    background: #cbd5e0 !important; /* Slightly darker */
    display: block;
}

.or-title {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Verification Instructions Box */
.verification-instructions {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    text-align: right;
}

.verification-instructions .instruction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 700;
}

.verification-instructions .instruction-header i {
    font-size: 1.2rem;
    color: #000;
}

.verification-instructions .instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verification-instructions .instruction-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: #2d3748;
    line-height: 1.4;
}

.verification-instructions .instruction-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 0.8rem;
    color: #000;
}

.verification-instructions .instruction-list li:last-child {
    margin-bottom: 0;
}
