/* ============================================
   HOTELBD AUTHENTICATION CSS (FIXED & PREMIUM)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --hbd-navy: #0B1B33;
    --hbd-gold: #D4A24C;
    --hbd-white: #FFFFFF;
    --hbd-bg: #F6F7F9;
    --hbd-text: #172033;
    --hbd-text-muted: #6B7A8D;
    --hbd-text-light: #8A94A0;
    --hbd-border: #E2E8F0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--hbd-bg);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Compact Auth Card (Fixed) ---- */
.auth-card {
    width: 100%;
    max-width: 900px;
    background: var(--hbd-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 27, 51, 0.08);
    overflow: hidden;
    display: flex; /* Forces a clean side-by-side layout */
    flex-direction: row;
    margin: 20px;
}

@media (max-width: 991px) {
    .auth-card {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
}

/* ---- Left Panel: Hotel Image Hero (Fixed) ---- */
.auth-hero {
    width: 45%; /* Increased width to stop text breaking */
    background: url('/images/hotel-bg.jpg') center/cover no-repeat;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 500px;
}

@media (max-width: 991px) {
    .auth-hero {
        width: 100%;
        min-height: 200px;
        padding: 20px;
    }
}

.auth-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 27, 51, 0.4) 0%, rgba(11, 27, 51, 0.8) 100%);
    z-index: 1;
}

.auth-hero * { position: relative; z-index: 2; }

/* Brand Logo */
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo .logo-icon {
    width: 34px; height: 34px;
    border: 2px solid var(--hbd-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--hbd-gold);
    font-size: 14px;
}
.brand-logo .logo-text h1 { font-size: 18px; font-weight: 700; color: white; margin: 0; line-height: 1; }
.brand-logo .logo-text h1 span { color: var(--hbd-gold); }
.brand-logo .logo-text .tagline { font-size: 8px; color: rgba(255, 255, 255, 0.6); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }

/* Hero Content (Fixed Text) */
.hero-content { margin-top: 30px; }
.hero-content h2 { font-size: 24px; font-weight: 600; color: white; line-height: 1.2; margin-bottom: 10px; }
.hero-content h2 .highlight { color: var(--hbd-gold); }
.hero-content p { color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 1.5; }

/* Hero Features (Fixed Text Wrapping) */
.hero-features { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap; /* Stops text breaking into tiny lines */
}
.hero-features .feature-item i { font-size: 14px; color: var(--hbd-gold); margin-top: 3px; }
.hero-features .feature-item .title { font-size: 12px; font-weight: 600; }
.hero-features .feature-item .subtitle { font-size: 11px; color: rgba(255, 255, 255, 0.7); }

/* ---- Right Panel: White Form Area ---- */
.auth-form-panel {
    width: 55%; /* Takes the rest of the space */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .auth-form-panel {
        width: 100%;
        padding: 24px 20px;
        justify-content: flex-start;
    }
}

/* Header */
.auth-form-panel .form-header { margin-bottom: 20px; }
.auth-form-panel .form-header h3 { font-size: 24px; font-weight: 700; color: var(--hbd-navy); margin-bottom: 6px; }
.auth-form-panel .form-header h3 span { color: var(--hbd-gold); }
.auth-form-panel .form-header p { color: var(--hbd-text-muted); font-size: 13px; margin: 0; }

/* Inputs */
.auth-form-panel .form-group { margin-bottom: 14px; }
.auth-form-panel .form-label { color: var(--hbd-text); font-weight: 500; font-size: 12px; margin-bottom: 5px; display: block; }
.auth-form-panel .input-wrapper { position: relative; }
.auth-form-panel .input-wrapper .input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--hbd-text-light); font-size: 14px; z-index: 2;
}
.auth-form-panel .form-control {
    width: 100%; padding: 10px 14px 10px 36px;
    background: var(--hbd-bg); border: 1px solid var(--hbd-border);
    border-radius: 8px; color: var(--hbd-text); font-size: 13px;
    transition: all 0.2s ease;
    height: 42px;
}
.auth-form-panel .form-control::placeholder { color: var(--hbd-text-light); font-size: 12px; }
.auth-form-panel .form-control:focus {
    outline: none; background: var(--hbd-white); border-color: var(--hbd-gold);
    box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.15);
}
.auth-form-panel .toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--hbd-text-light); cursor: pointer; z-index: 2; font-size: 14px;
}

/* Buttons */
.btn-auth {
    width: 100%; padding: 12px;
    border: none; border-radius: 8px;
    background: var(--hbd-gold); color: white;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 6px;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212, 162, 76, 0.3); }

/* Form Options */
.form-options { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 16px; }
.form-options label { display: flex; align-items: center; gap: 6px; color: var(--hbd-text); font-size: 12px; cursor: pointer; }
.form-options input { accent-color: var(--hbd-gold); width: 14px; height: 14px; }
.form-options a { color: var(--hbd-text-muted); font-size: 12px; text-decoration: none; }
.form-options a:hover { color: var(--hbd-gold); }

/* Divider & Social */
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--hbd-border); }
.divider span { color: var(--hbd-text-muted); font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.social-login { display: flex; gap: 12px; }
.social-login .btn-social {
    flex: 1; padding: 10px;
    border: 1px solid var(--hbd-border); border-radius: 8px;
    background: var(--hbd-white); color: var(--hbd-text);
    text-decoration: none; font-size: 12px; font-weight: 500;
    text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s;
}
.social-login .btn-social:hover { background: var(--hbd-bg); border-color: var(--hbd-gold); color: var(--hbd-gold); }
.social-login .btn-social i { font-size: 14px; }

/* Auth Link & Footer */
.auth-link { text-align: center; margin-top: 16px; color: var(--hbd-text-muted); font-size: 13px; }
.auth-link a { color: var(--hbd-gold); text-decoration: none; font-weight: 500; }
.auth-link a:hover { color: #E8C77B; }

.auth-footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--hbd-border); text-align: center; }
.auth-footer p { color: var(--hbd-text-muted); font-size: 10px; font-weight: 400; margin: 0; }
.auth-footer p .heart { color: #DC2626; }
.auth-footer p a { color: var(--hbd-gold); text-decoration: none; }

/* Alerts */
.alert-custom {
    padding: 10px 14px; border-radius: 8px; font-size: 12px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.alert-custom.alert-danger { background: rgba(220, 38, 38, 0.08); color: #DC2626; border-left: 3px solid #DC2626; }
.alert-custom.alert-success { background: rgba(22, 163, 74, 0.08); color: #16A34A; border-left: 3px solid #16A34A; }
/* ============================================
   INPUT VALIDATION STYLING (RED BORDER & TEXT)
   ============================================ */

/* 🔴 RED BORDER FOR FIELDS WITH ERRORS */
.input-wrapper.has-error .form-control {
    border-color: #DC2626 !important;
    background: rgba(220, 38, 38, 0.02);
}

.input-wrapper.has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    border-color: #DC2626 !important;
}

/* 🔴 RED ERROR TEXT UNDER FIELDS */
.input-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #DC2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.4;
}

.input-error i {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 🔴 GLOBAL ERROR ALERT (If any) */
.alert-custom.alert-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
    border-left: 3px solid #DC2626;
}