* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(10, 12, 18, 0.58) 0%, rgba(18, 14, 22, 0.42) 45%, rgba(8, 8, 14, 0.62) 100%),
    url("./assets/login_background.jpg") center/cover no-repeat fixed;
  color: #2f261b;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(253, 249, 241, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

/* Match home header logo row + .logo-text (styles.css) */
.auth-brand-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-brand-logo-row img {
  height: 45px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.auth-brand-title {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-size: 28px;
  font-weight: bold;
  color: #2c2c2c;
  letter-spacing: 2px;
  line-height: 1.05;
}

.auth-brand-tagline {
  margin: 14px 0 0;
  color: #6b5b46;
  font-size: 14px;
  font-weight: 600;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  background: rgba(241, 234, 216, 0.45);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #6b5b46;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: #2f261b;
}

.auth-tab.active {
  background: #2f261b;
  color: #ccff00;
  box-shadow: 0 2px 6px rgba(47, 38, 27, 0.25);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.auth-panel h2 {
  margin: 0 0 6px;
  color: #2f261b;
  font-size: 20px;
}

.auth-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b5b46;
  line-height: 1.5;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: #4f3b2a;
}

input {
  width: 100%;
  border: 1px solid rgba(216, 198, 161, 0.85);
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #2f261b;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: #2f261b;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.35);
}

button[type="submit"] {
  width: 100%;
  margin-top: 22px;
  border: none;
  background: #ccff00;
  color: #1b2313;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  letter-spacing: 0.2px;
}

button[type="submit"]:hover {
  background: #b8e600;
}

button[type="submit"]:active {
  transform: translateY(1px);
}

.status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: #4f3b2a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  color: #2f261b;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 18px;
  }
  .auth-brand-logo-row img {
    height: 36px;
  }
  .auth-brand-title {
    font-size: 22px;
    letter-spacing: 1px;
  }
}
