/* Auth pages shared styles — Login & ForgotPassword */
:root {
    --primary-blue: #003366;
    --secondary-orange: #f59e0b;
    --bg-light: #fdfdfd;
    --text-black: #000000;
    --text-gray: #888;
    --border-gray: #eee;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('/assets/fonts/ExpoArabic-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('/assets/fonts/alfont_com_AlFont_com_ExpoArabic-SemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('/assets/fonts/ExpoArabic-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

.auth-page,
.auth-page *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: 'ExpoArabic', 'Cairo', sans-serif;
}

.auth-watermark {
    position: fixed;
    bottom: -130px;
    left: -50px;
    width: 450px;
    height: 450px;
    background: url('/img/logo.svg') no-repeat center/contain;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.auth-main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}

.login-card {
    background: #ffffff;
    width: 500px;
    max-width: 100%;
    border-radius: 15px;
    padding: 42px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.login-card h1 {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #000000;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-page .form-label {
    display: block;
    text-align: right;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 400;
}

.auth-input-group {
    border: 1px solid #e2e2e7;
    border-radius: 12px;
    overflow: hidden;
    height: 52px;
    transition: var(--transition);
    display: flex;
    align-items: stretch;
}

.auth-input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.1);
}

.country-code,
.country-flag-prefix {
    border-right: 1px solid #f2f2f2 !important;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #fcfcfc;
    gap: 8px;
    white-space: nowrap;
}

.code-text {
    font-size: 13px;
    font-weight: bold;
}

.ltr-input,
.auth-ltr-input {
    text-align: left !important;
    padding-left: 15px !important;
    font-weight: bold;
    font-size: 14px;
    border: none !important;
    box-shadow: none !important;
    direction: ltr;
    flex: 1;
    outline: none;
    height: 100%;
    background: transparent;
}

#eye-icon {
    font-size: 16px;
    opacity: 0.5;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: none;
    color: #00416a;
}

#eye-icon:hover { opacity: 1; }

.btn-auth-submit {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-auth-submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    color: white;
}

.auth-forgot-pass {
    text-align: center;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 500;
}

.auth-forgot-pass a,
.auth-alt-link a {
    color: var(--secondary-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.auth-alt-link {
    margin-top: 20px;
    font-weight: 700;
    font-size: 14px;
}

.auth-validation {
    color: #dc3545;
    font-size: 13px;
    text-align: right;
    margin-bottom: 10px;
}

.auth-validation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* intl-tel-input integration */
.iti-phone-input,
.iti { width: 100%; }

.iti--separate-dial-code .iti__selected-flag {
    border-radius: 12px 0 0 12px;
    background: #fcfcfc;
    border-right: 1px solid #e2e2e7;
    padding: 0 10px;
}

.iti input.iti-phone-input,
.iti input[type="tel"] {
    border: 1px solid #e2e2e7;
    border-radius: 12px;
    height: 52px;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    padding-left: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    direction: ltr;
    text-align: left;
}

.iti input.iti-phone-input:focus,
.iti input[type="tel"]:focus {
    border-color: var(--primary-blue, #003366);
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.1);
}
