/* ============================================================
   LOGIN PAGE – StayDesk Design + Design System Typography
   Color Palette: Yellow #FDB71A, Dark Blue #2D539D
   Typography: Switzer (headings), Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Switzer:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Poppins:wght@300;400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: #F5F7FA;
  overflow: hidden;
}

/* Exactly one screen tall: no page scrollbar. The photo covers the whole
   page; the brand sits on the left and the form card on the right. */
.login-page {
  position: relative;
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #1F3D6F;
}

/* ── Left brand panel (its photo and overlay span the whole page) ── */
.login-image-panel {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Deep navy on the left for the brand, lighter toward the card */
.login-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 30, 61, 0.92) 0%, rgba(31, 61, 111, 0.82) 50%, rgba(31, 61, 111, 0.55) 100%);
  pointer-events: none;
}

/* Emblem beside a two-tone "Hotel1611 Admin Portal" wordmark, tagline
   underneath. Poppins: Bold gold "Hotel1611", Regular white "Admin Portal".
   The wordmark scales with the screen so it always fits on one line. */
.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* Cut from the small logo PNG, so it is kept close to its own 68px height */
.login-brand-emblem {
  height: 84px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.login-brand-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(30px, 3.1vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 8px;
  white-space: nowrap;
}

.login-brand-title span {
  color: #FDB71A;
  font-weight: 700;
}

.login-brand-tagline {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 21px);
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ── Right form panel ── */
/* Short screens can still scroll the form, with the scrollbar hidden */
.login-form-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  padding: 40px 48px 40px 24px;
  overflow-y: auto;
  scrollbar-width: none;
}

.login-form-panel::-webkit-scrollbar {
  display: none;
}

/* margin: auto centers it both ways, and unlike align-items: center it
   doesn't cut off the top when the form is taller than the screen */
.login-form-box {
  margin: auto;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px 60px 44px;
  background: #FFFFFF;
  border-top: 10px solid #FDB71A;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.login-intro {
  font-size: 15px;
  color: #333333;
  line-height: 1.6;
}

.login-intro p {
  margin-bottom: 12px;
}

.login-intro ol {
  margin: 0;
  padding-left: 22px;
}

/* Small note under the Google button */
.login-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: #666666;
}

.login-note i {
  color: #DC3545;
  font-size: 15px;
}

.login-card-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid #E5E5E5;
  font-size: 13px;
  color: #333333;
}

.login-card-footer .form-link {
  font-size: 13px;
}


/* Welcome section */
.login-title {
  font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #1F1F1F;
  margin-bottom: 0;
}

.login-subtitle {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-link {
  font-size: 12px;
  color: #2D539D;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.form-link:hover {
  color: #1F3D6F;
  text-decoration: underline;
}

.form-control {
  padding: 12px 14px;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  font-size: 14px;
  color: #333333;
  background: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #2D539D;
  box-shadow: 0 0 0 3px rgba(45, 83, 157, 0.1);
}

.form-control::placeholder {
  color: #999999;
}

/* Password wrapper */
.login-pw-wrap {
  position: relative;
}

.login-pw-wrap .form-control {
  padding-right: 44px;
}

.login-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999999;
  font-size: 18px;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s ease;
}

.login-pw-toggle:hover {
  color: #2D539D;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #FDB71A;
}

.form-check-label {
  font-size: 13px;
  color: #333333;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Sign in button – StayDesk yellow */
.btn-sign-in {
  padding: 12px 24px;
  background: #FDB71A;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-sign-in:hover:not(:disabled) {
  background: #F5A800;
  box-shadow: 0 2px 8px rgba(253, 183, 26, 0.3);
}

.btn-sign-in:active {
  background: #E89900;
}

.btn-sign-in:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* "or" line between the form and Google */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -8px 0;
  font-size: 12px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #E5E5E5;
}

/* Sign in with Google: blue button with the "G" on a white tile */
.btn-google {
  display: inline-flex;
  align-self: flex-start;
  align-items: stretch;
  padding: 1px;
  background: #4285F4;
  color: #FFFFFF;
  border: none;
  border-radius: 2px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-google-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  background: #FFFFFF;
  border-radius: 1px;
}

.btn-google-label {
  display: flex;
  align-items: center;
  padding: 14px 18px;
}

.btn-google:hover {
  color: #FFFFFF;
  background: #3367D6;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
}

.btn-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 83, 157, 0.2);
}

/* Alerts */
.alert {
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.alert-danger {
  background: #F8D7DA;
  color: #721C24;
  border: 1px solid #DC3545;
}

.alert-info {
  background: #D1ECF1;
  color: #0C5460;
  border: 1px solid #0275D8;
}

.alert-success {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #45AC4F;
}

/* Hint box */
.login-hint-box {
  background: #F5F7FA;
  border: 2px dashed #E5E5E5;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-hint-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666666;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #333333;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.badge-primary {
  background: #2D539D !important;
  color: #FFFFFF !important;
}

.badge-success {
  background: #45AC4F !important;
  color: #FFFFFF !important;
}

/* Responsive */
/* ── Six-digit code boxes (Verify sign in) ── */
.form-otp {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-otp-control {
  width: 48px;
  height: 52px;
  padding: 0;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  background: #FFFFFF;
  color: #333333;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.form-otp-control:focus {
  outline: none;
  border-color: #2D539D;
  box-shadow: 0 0 0 3px rgba(45, 83, 157, 0.1);
}

.form-otp-lg .form-otp-control {
  width: 52px;
  height: 56px;
}

@media (max-width: 1024px) {
  .login-image-panel {
    width: 40%;
    padding: 32px;
  }

  .login-brand-emblem {
    height: 60px;
  }

  .login-form-box {
    gap: 24px;
    padding: 44px 40px 36px;
  }
}

/* Phones: brand above the card, the page scrolls as one column */
@media (max-width: 768px) {
  .login-page {
    flex-direction: column;
    overflow-y: auto;
  }

  .login-image-panel {
    width: 100%;
    padding: 32px 16px 8px;
  }

  .login-brand {
    gap: 12px;
  }

  .login-brand-emblem {
    height: 48px;
  }

  .login-brand-title {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .login-brand-tagline {
    font-size: 15px;
  }

  .login-image,
  .login-image-overlay {
    position: fixed;
  }

  .login-form-panel {
    width: 100%;
    flex: none;
    overflow: visible;
    padding: 16px 16px 32px;
  }

  .login-form-box {
    padding: 32px 24px 28px;
  }

  .login-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .form-otp { gap: 6px; }

  .form-otp-control,
  .form-otp-lg .form-otp-control {
    width: 40px;
    height: 46px;
    font-size: 18px;
  }

  .login-form-box {
    gap: 16px;
  }
  
  .login-title {
    font-size: 20px;
  }
}



