/* ============================================
   Travel Point - User Login CSS
   Identical design to Admin Login
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary:       #1a3a5c;
    --primary-light: #2a5298;
    --white:         #ffffff;
    --border:        #d0dce8;
    --text-dark:     #1a3a5c;
    --text-mid:      #4a6580;
    --text-light:    #8aa0b8;
    --error-bg:      #fff0f0;
    --error-border:  #f5c0c0;
    --error-text:    #c0392b;
    --shadow-sm:     0 2px 8px rgba(26,58,92,0.10);
    --shadow-lg:     0 8px 30px rgba(26,58,92,0.14);
    --radius:        8px;
    --radius-lg:     14px;
    --transition:    0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
    background-color: #dce6f0;
}

/* ---- Map Background ---- */
.map-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    z-index: 0;
    pointer-events: none;
}

.map-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 40%,
        rgba(220,230,240,0.30) 0%,
        rgba(200,218,232,0.55) 100%);
    pointer-events: none;
}

/* ---- Floating Icons ---- */
.floating-icons {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-icons .icon {
    position: absolute;
    font-size: 32px;
    opacity: 0.07;
    animation: floatIcon 15s infinite;
}

.floating-icons .icon:nth-child(1) { top: 20%; left: 8%;   animation-delay: 0s; }
.floating-icons .icon:nth-child(2) { top: 55%; left: 82%;  animation-delay: 3s; }
.floating-icons .icon:nth-child(3) { top: 75%; left: 18%;  animation-delay: 6s; }
.floating-icons .icon:nth-child(4) { top: 35%; right: 12%; animation-delay: 9s; }
.floating-icons .icon:nth-child(5) { bottom: 18%; right: 22%; animation-delay: 12s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.07; }
    50%       { transform: translateY(-30px) rotate(10deg); opacity: 0.13; }
}

/* ============================================
   ROW 1 — NAVBAR
   ============================================ */
.top-navbar {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26,58,92,0.10);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo img { height: 36px; width: auto; }

.navbar-logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.navbar-logo-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.navbar-logo-sub {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 8.5px;
    color: var(--text-mid);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 11px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: var(--transition);
    user-select: none;
}

.lang-switcher:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.lang-flag { width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.lang-label { font-size: 11px; font-weight: 600; color: var(--text-dark); letter-spacing: 0.5px; }
.lang-arrow { font-size: 8px; color: var(--text-mid); }

/* ============================================
   ROW 2 — TITLE
   ============================================ */
.page-title-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 28px 24px 20px;
    flex-shrink: 0;
}

.page-title-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.8vw, 34px);
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 8px;
}

.page-subtitle {
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: clamp(11px, 1.2vw, 14px);
    color: var(--text-mid);
    font-weight: 400;
    line-height: 1.6;
}

.page-subtitle span { font-weight: 600; color: var(--primary); }

/* ============================================
   ROW 3 — LOGIN CARD
   ============================================ */
.login-wrapper {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 20px 36px;
    flex-shrink: 0;
}

.login-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px 32px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(26,58,92,0.08);
}

/* ---- Form: label above input ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

.input-wrapper input {
    width: 100%;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 12px;
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.07);
}

.input-wrapper input:hover:not(:focus) { border-color: var(--primary-light); }

/* ---- Button ---- */
.btn-login {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-login:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(26,58,92,0.25);
}

.btn-login:active { transform: translateY(0); box-shadow: none; }

/* ---- Error ---- */
.error-message {
    background: var(--error-bg);
    border: 1.5px solid var(--error-border);
    color: var(--error-text);
    border-radius: var(--radius);
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ---- Footer ---- */
.login-footer { margin-top: 14px; text-align: center; }

.footer-note {
    font-size: 11px;
    color: var(--text-mid);
    background: #f0f4f8;
    padding: 7px 12px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 11px;
    color: var(--text-mid);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.copyright { font-size: 10px; color: var(--text-light); }

/* ============================================
   RTL — Arabic
   ============================================ */
body.lang-ar {
    direction: rtl;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

body.lang-ar .top-navbar    { flex-direction: row-reverse; }
body.lang-ar .navbar-logo   { flex-direction: row-reverse; }
body.lang-ar .form-group label { font-family: 'Cairo', sans-serif; text-align: right; }
body.lang-ar .input-wrapper input { text-align: right; font-family: 'Cairo', sans-serif; }
body.lang-ar #password      { direction: ltr; text-align: left; }
body.lang-ar .btn-login     { font-family: 'Cairo', sans-serif; }
body.lang-ar .page-subtitle { direction: rtl; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 500px) {
    .top-navbar         { padding: 8px 14px; }
    .page-title-section { padding: 18px 14px 14px; }
    .login-card         { padding: 18px 16px 16px; max-width: 100%; }
    .map-background     { width: 90%; height: 50%; }
}