/* ══════════════════════════════════════════════════
   Login Page — Modern Light Theme
   ══════════════════════════════════════════════════ */

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #e8f4fd 0%, #d5e8f5 50%, #c3dcef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* ── Login Card ─────────────────────────────────── */
.card-container.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(52, 152, 219, 0.15),
              0 4px 16px rgba(0,0,0,0.08);
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  border: none;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ───────────────────────────────────────── */
.profile-img-card {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 8px;
  border: 4px solid #e8f4fd;
  object-fit: contain;
  padding: 8px;
  background: #f8fbfe;
}

.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 28px;
}

/* ── Alert messages ─────────────────────────────── */
.result .alert {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  margin-bottom: 16px;
  padding: 10px 14px;
}

.alert-danger  { background: #fdf3f3; color: #c0392b; border-left: 4px solid #e74c3c; }
.alert-success { background: #f0fdf4; color: #1e8449; border-left: 4px solid #27ae60; }

/* ── Form ───────────────────────────────────────── */
.form-signin label {
  font-weight: 600;
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 6px;
  display: block;
}

.form-signin .form-group {
  margin-bottom: 18px;
}

.form-signin .form-control {
  border: 1.5px solid #dde3eb;
  border-radius: 10px;
  height: 48px;
  font-size: 14px;
  color: #343a40;
  padding: 10px 16px;
  width: 100%;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfc;
}

.form-signin .form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.18);
  outline: none;
  background: #fff;
}

.form-signin input[type="email"],
.form-signin input[type="password"],
.form-signin input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* ── Login Button ───────────────────────────────── */
.btn.btn-signin {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  height: 50px;
  width: 100%;
  margin-top: 8px;
  letter-spacing: 0.5px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(52,152,219,0.35);
  cursor: pointer;
}

.btn.btn-signin:hover,
.btn.btn-signin:focus {
  background: linear-gradient(135deg, #2980b9, #1a6aa1);
  box-shadow: 0 6px 20px rgba(52,152,219,0.45);
  transform: translateY(-1px);
}

.btn.btn-signin:active {
  transform: translateY(0);
}

/* ── Misc ───────────────────────────────────────── */
.btn { user-select: none; }

.help-block.with-errors {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Page wrapper (replaces old .container) ─────── */
.login-page-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* ── Resort logo area ───────────────────────────── */
.login-resort-logo-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.login-resort-logo {
  max-width: 180px;
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Text fallback — hidden by default, shown via JS onerror */
.login-resort-logo-text {
  display: none;
  font-size: 22px;
  font-weight: 800;
  color: #3498db;
  letter-spacing: -0.5px;
}

/* ── Login tagline ───────────────────────────────── */
.login-tagline {
  text-align: center;
  font-size: 12.5px;
  color: #3498db;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: -6px 0 4px;
  font-style: italic;
}

/* ── Powered-by badge at card bottom ────────────── */
.login-powered-wrap {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
  text-align: center;
}

.login-powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #95a5a6;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color .2s, opacity .2s;
  opacity: 0.75;
}

.login-powered-badge:hover { color: #3498db; opacity: 1; text-decoration: none; }

.login-powered-label { font-weight: 500; }

.login-saas-logo {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
