﻿@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@400;600;700;800&family=Cairo:wght@300;400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #f093fb;
    --accent: #00d4ff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --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);
}

html {
    scroll-behavior: smooth;
}
 
body {
    font-family: 'Cairo', 'Plus Jakarta Sans',-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /*background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);*/
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow-x: hidden;
}

    body.dark-mode {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

.auth-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    animation: containerSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
}

@keyframes containerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============ LEFT PANEL ============ */
.auth-left {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .auth-left::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 8s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.auth-left-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ============ AVATAR SECTION ============ */
.left-col-2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.avatar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-decoration {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.avatar-wrapper {
    position: relative;
/*    width: 120px;
    height: 120px;*/
    z-index: 2;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    display: block;
}

    .avatar-img:hover {
        transform: scale(1.08) rotate(2deg);
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    }

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.welcome-text {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.95;
    max-width: 260px;
}

/* ============ BRAND SECTION ============ */
.left-col-1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

    .brand:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

.brand-box {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 12px;
}

.brand-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.left-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.left-heading {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 4px 0;
    letter-spacing: -0.3px;
}

    .left-heading span {
        background: linear-gradient(135deg, #ffd700, #ffed4e);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }

.left-desc {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 280px;
    margin: 6px 0;
}

/* ============ STATS SECTION ============ */
.left-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin: 8px 0;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

    .stat:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

.stat-n {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.stat-l {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
}

/* ============ LEARN MORE LINK ============ */
.learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    margin-top: 4px;
}

    .learn-more:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
    }

    .learn-more i {
        font-size: 11px;
    }

.left-footer {
    position: absolute;
    bottom: 10px;
    font-size: 10px;
    opacity: 0.7;
}

/* ============ RIGHT PANEL ============ */
.auth-right {
    background: white;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

body.dark-mode .auth-right {
    background: var(--gray-800);
    color: white;
}

.right-inner {
    width: 100%;
}

/* ============ TABS ============ */
.nav.nav-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 20px !important;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-lg);
    width: 100%;
    border: none !important;
}

body.dark-mode .nav.nav-tabs {
    background: var(--gray-700);
}

.nav-link {
    padding: 10px 12px !important;
    border: 2px solid transparent !important;
    background: transparent !important;
    color: var(--gray-600) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    cursor: pointer;
    border-radius: var(--radius-md) !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    position: relative;
}

body.dark-mode .nav-link {
    color: var(--gray-400) !important;
}

.nav-link.active {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-md);
    border-color: var(--primary) !important;
}

body.dark-mode .nav-link.active {
    background: var(--gray-600) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.nav-link:hover:not(.active) {
    color: var(--gray-700) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

body.dark-mode .nav-link:hover:not(.active) {
    color: var(--gray-200) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ============ FORMS ============ */
.tab-pane {
    animation: formFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sec-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 18px;
}

body.dark-mode .sec-tag {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

.form-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .form-label {
    color: var(--gray-300);
}

.input-group {
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--gray-200) !important;
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .input-group {
    border-color: var(--gray-600) !important;
}

.input-group:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-mode .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--gray-400) !important;
    font-size: 13px;
    padding: 0 10px;
}

body.dark-mode .input-group-text {
    color: var(--gray-500) !important;
}

.form-control {
    border: none !important;
    font-size: 12px;
    padding: 9px 0;
    background: transparent !important;
    color: var(--gray-900);
}

body.dark-mode .form-control {
    color: white;
}

.form-control::placeholder {
    color: var(--gray-400);
}

body.dark-mode .form-control::placeholder {
    color: var(--gray-500);
}

.form-control:focus {
    box-shadow: none !important;
    border: none !important;
}

.mb-3 {
    margin-bottom: 12px !important;
}

.position-relative {
    position: relative;
}

/* ============ SUGGESTIONS ============ */
.suggestion-box {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    display: none;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    animation: suggestionSlideDown 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .suggestion-box {
    background: var(--gray-700);
    border-color: var(--gray-600);
}

@keyframes suggestionSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-box.show {
    display: block;
}

.suggestion-box li {
    list-style: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

body.dark-mode .suggestion-box li {
    border-bottom-color: var(--gray-600);
    color: var(--gray-300);
}

.suggestion-box li:last-child {
    border-bottom: none;
}

.suggestion-box li:hover,
.suggestion-box li.active {
    background: var(--gray-50);
    color: var(--primary);
}

body.dark-mode .suggestion-box li:hover,
body.dark-mode .suggestion-box li.active {
    background: var(--gray-600);
    color: var(--accent);
}

.suggestion-box li i {
    color: var(--primary);
    font-size: 12px;
    flex-shrink: 0;
}

body.dark-mode .suggestion-box li i {
    color: var(--accent);
}

.suggestion-box .not-found {
    color: var(--gray-500);
    font-style: italic;
    padding: 10px;
    text-align: center;
    font-size: 11px;
}

/* ============ ERROR MESSAGES ============ */
.input-error {
    display: none;
    font-size: 10px;
    color: var(--danger);
    margin-top: 3px;
    text-align: center;
    animation: errorShake 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .input-error.show {
        display: block;
    }

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

/* ============ BUTTONS ============ */
.row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
}

.row-actions-end {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.btn-login {
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.35);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.btn-ghost-dark {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    background: white;
    color: var(--gray-700);
    position: relative;
    overflow: hidden;
}

body.dark-mode .btn-ghost-dark {
    background: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--gray-200);
}

.btn-ghost-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
}

body.dark-mode .btn-ghost-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--gray-600);
}

.btn-ghost-dark.warn:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.btn-ghost-dark:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ FORGOT PASSWORD LINK ============ */
.forgot-wrap {
    text-align: center;
    margin-top: 10px;
}

    .forgot-wrap a {
        color: var(--primary);
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        transition: var(--transition);
        position: relative;
    }

body.dark-mode .forgot-wrap a {
    color: var(--accent);
}

.forgot-wrap a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

body.dark-mode .forgot-wrap a::after {
    background: var(--accent);
}

.forgot-wrap a:hover::after {
    width: 100%;
}

/* ============ MODAL ============ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--gray-200);
}

body.dark-mode .modal-content {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 10px;
    border: none !important;
}

body.dark-mode .modal-header {
    border-bottom-color: var(--gray-700);
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
}

body.dark-mode .modal-title {
    color: white;
}

.btn-close {
    background: none !important;
    border: none;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-close:hover {
        color: var(--gray-700);
        transform: rotate(90deg);
    }

body.dark-mode .btn-close:hover {
    color: var(--gray-200);
}

.modal-body {
    margin-bottom: 16px;
}

.modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .auth-left {
        padding: 28px 24px;
        min-height: auto;
    }

    .auth-right {
        padding: 28px 24px;
    }

    .left-heading {
        font-size: 22px;
    }

    .left-desc {
        font-size: 11px;
    }

    .avatar-img {
        width: 110px;
        height: 110px;
    }

    .left-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .left-col-1{
        display:none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .auth-container {
        border-radius: var(--radius-lg);
    }

    .auth-left {
        padding: 24px 20px;
        min-height: auto;
    }

    .auth-right {
        padding: 24px 20px;
    }

    .auth-left-inner {
        gap: 14px;
    }

    .left-col-2 {
        gap: 12px;
    }

    .left-col-1 {
        gap: 8px;
        display: none;
    }

    .avatar-img {
        width: 90px;
        height: 90px;
    }

    .avatar-decoration {
        width: 140px;
        height: 140px;
    }

    .welcome-text {
        font-size: 11px;
    }

    .left-heading {
        font-size: 19px;
    }

    .left-desc {
        font-size: 10px;
    }

    .left-stats {
        gap: 6px;
    }

    .stat {
        padding: 8px 6px;
    }

    .stat-n {
        font-size: 12px;
    }

    .stat-l {
        font-size: 8px;
    }

    .nav.nav-tabs {
        margin-bottom: 16px !important;
        gap: 4px;
        padding: 3px;
    }

    .nav-link {
        padding: 9px 10px !important;
        font-size: 11px !important;
        gap: 4px;
    }

    .mb-3 {
        margin-bottom: 10px !important;
    }

    .form-label {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 8px 0;
        font-size: 11px;
    }

    .input-group-text {
        padding: 0 8px;
        font-size: 12px;
    }

    .row-actions {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 12px;
    }

    .row-actions-end {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .btn-login,
    .btn-ghost-dark {
        padding: 9px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 14px;
    }

    .modal-footer {
        gap: 6px;
    }

    .sec-tag {
        margin-bottom: 10px;
        padding: 4px 8px;
        font-size: 8px;
    }

    .forgot-wrap {
        margin-top: 8px;
    }

        .forgot-wrap a {
            font-size: 10px;
        }
}

@media (max-width: 480px) {
    .auth-left {
        padding: 20px 16px;
    }

    .auth-right {
        padding: 20px 16px;
    }

    .avatar-img {
        width: 75px;
        height: 75px;
    }

    .avatar-decoration {
        width: 120px;
        height: 120px;
    }

    .left-heading {
        font-size: 17px;
    }

    .left-tag {
        font-size: 9px;
    }

    .left-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .stat {
        padding: 7px 5px;
    }

    .stat-n {
        font-size: 11px;
    }

    .stat-l {
        font-size: 7px;
    }

    .learn-more {
        font-size: 10px;
        padding: 7px 12px;
    }

    .row-actions {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        grid-template-columns: 1fr;
    }

    .left-footer {
        font-size: 9px;
    }
    .left-col-1 {
        display: none;
    }
}

/* ============ DARK MODE ============ */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .auth-container {
        background: var(--gray-800);
    }

    .auth-right {
        background: var(--gray-800);
        color: white;
    }
}

/* ============ UTILITIES ============ */
.d-none {
    display: none !important;
}

.p-0 {
    padding: 0 !important;
}

.m-0 {
    margin: 0 !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-500) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.small {
    font-size: 11px;
}

.mt-1 {
    margin-top: 3px;
}

.fw-bold {
    font-weight: 600;
}

.me-1 {
    margin-right: 4px;
}

/* Scrollbar Styling */
.suggestion-box::-webkit-scrollbar {
    width: 5px;
}

.suggestion-box::-webkit-scrollbar-track {
    background: transparent;
}

.suggestion-box::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

body.dark-mode .suggestion-box::-webkit-scrollbar-thumb {
    background: var(--gray-600);
}

.suggestion-box::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

body.dark-mode .suggestion-box::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Accessibility */
.btn-login:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.dark-mode .btn-login:focus,
body.dark-mode .form-control:focus,
body.dark-mode .nav-link:focus {
    outline-color: var(--accent);
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .auth-container {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }

    .auth-left::before {
        display: none;
    }
}

[dir="ltr"] .main-content-area {
    margin-left: 0px!important;
}
[dir="rtl"] .main-content-area {
    margin-right: 0px !important;
}

/* =========================
   Desktop Layout >= 990px
========================= */
@media (min-width: 990px) {

    .avatar-card {
        display: grid;
        grid-template-columns: 180px 1fr;
        align-items: center;
        gap: 24px;
        width: 100%;
        max-width: 650px;
        text-align: start;
    }

    /* RTL Support */
    [dir="rtl"] .avatar-card {
        grid-template-columns: 1fr 180px;
    }

    /* Image Section */
    .avatar-wrapper {
        width: 100px;
        height: 100px;
        margin: auto;
    }

    .avatar-decoration {
        width: 220px;
        height: 220px;
    }

    /* Content Section */
    .avatar-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }

    .welcome-text {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.8;
    }

    .brand {
        justify-content: flex-start;
    }

    [dir="rtl"] .brand {
        justify-content: flex-end;
    }
}
/* =========================================
   AVATAR CARD
========================================= */

.avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Desktop */
@media (min-width: 990px) {

    .avatar-card {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 28px;
        width: 100%;
    }

    .avatar-content {
        display: flex;
        align-items: center;
    }

    .welcome-text {
        max-width: 500px;
        text-align: center;
        font-size: 14px;
        line-height: 1.8;
        margin-top: 16px;
    }

    [dir="rtl"] .avatar-card {
        flex-direction: row-reverse;
    }
}

/* Mobile / Tablet */
@media (max-width: 990px) {

    /* show only image */
    .avatar-content,
    .brand,
    .avatar-status {
        display: none;
    }

    .avatar-card {
        justify-content: center;
    }

    .welcome-text {
        width: 100%;
        text-align: center;
        font-size: 12px;
        line-height: 1.6;
        margin-top: 12px;
    }
}