/* ============================================
   HopKard Login — Polished Dark Glass
   ============================================ */
:root {
  --glass-bg: rgba(28, 28, 33, 0.92);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-text: #ffffff;
  --link-color: #4db6ac;
}

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

body.login-page {
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #121212, #1e1e22);
  color: #ffffff;
  padding: 20px;
}

/* Hide legacy header */
.login-header, .login-navbar { display: none; }

/* Main Wrapper */
.login-main {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.login-logo-section {
  width: 100%;
  text-align: center;
  margin-bottom: 1.6rem;
}

.login-logo-section img {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.55));
}

/* Top action pills (ENG/TH, Order) */
.login-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.login-actions .action-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.28s ease;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.login-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb !important;
}

.login-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.login-actions .btn-primary {
  width: auto;
  background: linear-gradient(135deg, #FF9966, #FF5E62);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 94, 98, 0.35);
  margin-top: 0;
}

.login-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 98, 0.55);
}

/* Login Card */
.login-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 2.4rem 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  text-align: center;
}

/* Heading */
.login-heading, .login-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: #ffffff;
}

/* Form group */
.login-form .form-group {
  margin-bottom: 1.3rem;
  text-align: left;
}

.login-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--input-bg);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: var(--input-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
}

.login-form input:focus {
  border-color: #00c6ff;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.18);
}

.login-form ::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Submit button — scoped to login form */
.login-submit-btn {
  width: 100%;
  padding: 0.95rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 114, 255, 0.4);
  transition: transform 0.22s, box-shadow 0.22s;
  margin-top: 0.8rem;
  display: block;
  font-family: inherit;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(0, 114, 255, 0.55);
  background: linear-gradient(135deg, #00d2ff, #0084ff);
}

/* Forgot password link — scoped */
.login-links {
  margin-top: 1.6rem;
  text-align: center;
}

.login-links a {
  color: var(--link-color);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.login-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
