/* ========================================
   ROOT & DIRECTION (RTL SUPPORT)
======================================== */
:root {
    direction: rtl;
    text-align: right;

    /* Design Tokens */
    --font-main: 'Almarai', sans-serif;
    --primary-color: #b8860b; /* matches the gold brand */

    /* Unified Button Colors */
    --btn-gold-bg: #b8860b;
    --btn-gold-hover: #9c6f07;
    --btn-red-bg: #e74a3b;
    --btn-red-hover: #be2617;
    --btn-black-bg: #141021;
    --btn-black-hover: #1f1a33;
    --btn-warning-bg: #f6c23e;
    --btn-warning-hover: #dda20a;
    --btn-blue-bg: #4e73df;
    --btn-blue-hover: #2e59d9;
    --btn-info-bg: #36b9cc;
    --btn-info-hover: #2c9faf;
}

/* ========================================
   UNIFIED BUTTON OVERRIDES
======================================== */
.btn {
    border-radius: 0.25rem !important;
    font-weight: 600;
}

.btn-dark {
    background-color: var(--btn-black-bg) !important;
    border-color: var(--btn-black-bg) !important;
    color: #fff !important;
}

.btn-dark:hover {
    background-color: var(--btn-black-hover) !important;
    border-color: var(--btn-black-hover) !important;
}

.btn-danger {
    background-color: var(--btn-red-bg) !important;
    border-color: var(--btn-red-bg) !important;
}

.btn-outline-secondary {
    border-radius: 0.25rem !important;
}

/* ========================================
   BASE TYPOGRAPHY & LAYOUT
======================================== */
body {
    /* Font stack */
    font-family: var(--font-main);
    /* Background */
    background: url('../images/bg11.jpg') no-repeat center/cover;
    /* Full viewport layout */
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   FORM & INPUT STYLES
======================================== */
input,
textarea,
select,
button {
    font-family: var(--font-main);
    font-size: 16px; /* Prevents iOS zoom on input focus */
}

/* ========================================
   HEADINGS
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    margin: 0;
}

/* ========================================
   FORM BOX & GENERAL UI
======================================== */
.form-box {
    background-color: #fff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 100%;
    border: none;  
}

.form-label {
    font-weight: bold;
}

/* Remove Bootstrap's background icons for validation */
.form-control.is-invalid,
.form-control.is-valid {
    background-image: none;
}

/* ========================================
   LOGIN HEADER
======================================== */
.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-direction: column;
   
}

    .login-header img {
        width: 145px;
        height: 145px;
        padding: 5px;
        object-fit: cover;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
       /* border: 2px solid var(--primary-color);*/
    }
    .login-header img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }
    .login-header h2 {
        font-weight: bold;
        color: var(--primary-color);
        margin: 0;
    }

/* ========================================
   PASSWORD TOGGLE
======================================== */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

/* ========================================
   VALIDATION & ERROR STYLES
======================================== */
input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.text-danger {
    font-size: 0.9rem;
}

    .text-danger.d-none {
        display: none !important;
    }

/* ========================================
   FOOTER / LINK STYLES
======================================== */
.register-text {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
}

    .register-text a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
    }

        .register-text a:hover {
            text-decoration: underline;
        }
