/* =====================================================================
   Qubenest Stay login pages (Partner / Staff / Super Admin)
   Same look as the main website qubenest.com: white header with the
   colour logo, dark-blue "Book your stay" hero, white card, yellow
   button, navy footer. Fonts: Inter + Playfair Display.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }

:root {
  --primary: #4A90E2;
  --primary-dark: #2C6B9E;
  --primary-light: #6BA5E8;
  --gradient-1: linear-gradient(135deg, #4A90E2, #6BA5E8);
  --hero: linear-gradient(135deg, #0a2b4e, #1e4c9a);
  --yellow: #ffcc00;
  --yellow-dark: #e6b800;
  --dark: #2C3E50;
  --gray: #6c757d;
  --line: #e0e0e0;
}

body.qn-login {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top strip (like the website's offer ticker) ---------- */
.qn-strip {
  background: linear-gradient(90deg, #0c4a6e, #0369a1, #0ea5e9, #0369a1, #0c4a6e);
  color: #fff;
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.qn-strip-label {
  background: #e0f2fe; color: #0c4a6e; font-weight: 800; font-size: 11px;
  letter-spacing: .5px; text-transform: uppercase; padding: 0 14px; height: 100%;
  display: flex; align-items: center; gap: 6px; box-shadow: 4px 0 10px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.qn-strip-label svg { width: 13px; height: 13px; }
.qn-strip-text { padding: 0 22px; overflow: hidden; text-overflow: ellipsis; }
.qn-strip-text b { color: #bae6fd; }
.qn-strip-text .sep { color: #e0f2fe; margin: 0 14px; font-size: 10px; }

/* ---------- Header ---------- */
.qn-header {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
  position: relative; z-index: 5;
}
.qn-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.qn-logo { height: 52px; width: auto; display: block; }
.qn-logo-text {
  display: none; font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: var(--dark); text-decoration: none;
}
.qn-logo-text span { color: var(--primary); }
.qn-header-btns { display: flex; gap: 8px; align-items: center; }
.qn-pill {
  padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 13px;
  text-decoration: none; white-space: nowrap; transition: opacity .2s, background .2s;
}
.qn-pill-red { background: var(--gradient-1); color: #fff; }
.qn-pill-red:hover { opacity: .9; }
.qn-pill-ghost { color: var(--dark); border: 2px solid var(--primary); background: transparent; }
.qn-pill-ghost:hover, .qn-pill-ghost.active { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.qn-hero {
  background: var(--hero);
  padding: 46px 20px 70px;
  position: relative;
  overflow: hidden;
  flex: 1;
}
.qn-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.qn-hero-inner {
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center;
}

.qn-hero-copy { color: #fff; }
.qn-tag {
  display: inline-block; background: rgba(255,255,255,.2); padding: 4px 12px;
  border-radius: 16px; font-size: 11px; font-weight: 600; letter-spacing: .3px; margin-bottom: 14px;
}
.qn-hero-copy h1 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 46px; line-height: 1.15; margin-bottom: 12px;
}
.qn-hero-copy h1 span { color: #ffd966; }
.qn-hero-copy p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 460px; }

.qn-points { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.qn-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.qn-points li i {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qn-points li i svg { width: 17px; height: 17px; }

/* ---------- Card ---------- */
.qn-card {
  background: #fff; border-radius: 20px; padding: 28px 26px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.qn-card h2 {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
  color: var(--dark); margin-bottom: 4px;
}
.qn-card .qn-sub { font-size: 13px; color: var(--gray); margin-bottom: 20px; }

.qn-field { margin-bottom: 14px; }
.qn-label {
  display: block; font-size: 10.5px; font-weight: 600; color: #666;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px;
}
.qn-input-wrap { position: relative; }
.qn-input-wrap svg {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--primary); pointer-events: none;
}
.qn-input {
  width: 100%; padding: 12px 40px 12px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 14px; color: #333; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.qn-input:hover { border-color: var(--primary); }
.qn-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74,144,226,.15); }

.qn-btn {
  width: 100%; margin-top: 8px; background: var(--yellow); color: #333; border: none;
  padding: 13px 20px; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: background .15s, transform .1s;
}
.qn-btn:hover { background: var(--yellow-dark); transform: translateY(-2px); }

.qn-error {
  display: flex; gap: 8px; align-items: flex-start; background: #fff5f5; border: 1px solid #fdd9d7;
  color: #b91c1c; font-size: 13px; font-weight: 500; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px;
}

.qn-card-foot { text-align: center; font-size: 12.5px; color: var(--gray); margin-top: 18px; line-height: 1.6; }
.qn-card-foot a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.qn-footer {
  background: linear-gradient(135deg, #1a2639, #2C3E50); color: rgba(255,255,255,.75);
  text-align: center; font-size: 12px; padding: 16px 20px;
}
.qn-footer a { color: #FFB347; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .qn-hero-inner { grid-template-columns: 1fr; gap: 26px; max-width: 460px; }
  .qn-hero-copy { text-align: center; }
  .qn-hero-copy p { margin: 0 auto; }
  .qn-hero-copy h1 { font-size: 30px; }
  .qn-points { display: none; }
  .qn-hero { padding: 32px 16px 48px; }
}
@media (max-width: 560px) {
  .qn-header-btns .qn-pill-ghost { display: none; }
  .qn-logo { height: 40px; }
  .qn-strip-text .hide-xs { display: none; }
  .qn-hero-copy h1 { font-size: 26px; }
  .qn-hero-copy p { font-size: 13.5px; }
  .qn-card { padding: 22px 18px; }
  .qn-card h2 { font-size: 22px; }
  .qn-input { font-size: 15px; } /* avoids iOS zoom */
}
