/* BarberAPP — login glass (FRONTEND_STYLE_GUIDE) */

:root {
  --navy: #19284c;
  --navy-2: #101b36;
  --gold: #d4af37;
  --gold-dark: #a87910;
  --bg: #f3f5f9;
  --cream: #f7f4ec;
  --card: #ffffff;
  --text: #121826;
  --muted: #768094;
  --line: #e3e7ef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.login-page {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--navy-2);
}

.login-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16, 27, 54, 0.92), rgba(25, 40, 76, 0.88)),
    url("https://images.unsplash.com/photo-1503951914875-452162b0e3e1?auto=format&fit=crop&w=1600&q=70") center / cover no-repeat;
  transform: scale(1.02);
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(212, 175, 55, 0.12), transparent 55%);
  pointer-events: none;
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.login-glass {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: var(--navy-2);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.login-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.login-sub {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.login-msg {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.login-msg[hidden] {
  display: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.login-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.5rem;
}

.login-input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.login-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.18);
}

.login-btn {
  margin-top: 1.25rem;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}

.login-btn:hover {
  filter: brightness(1.06);
}

.login-btn:active {
  transform: translateY(1px);
}

.login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .login-glass {
    padding: 2.25rem 2rem 2.5rem;
  }

  .login-title {
    font-size: 1.65rem;
  }
}
