
:root {
  --primary: #7b001f;
  --primary-dark: #580016;
  --accent: #c97a61;
  --accent-soft: #f6e0d7;
  --bg: #fff8f5;
  --text-main: #3b2220;
  --border-soft: #e2c3b7;
  --button: #f2642b;
  --button-dark: #d24f1e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #ffe9df 0, #fff8f5 35%, #ffffff 100%);
  color: var(--text-main);
  padding: 16px;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  padding: 26px 26px 30px;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at -10% 0, rgba(242, 100, 43, 0.18), transparent 55%),
              radial-gradient(circle at 120% 120%, rgba(123, 0, 31, 0.17), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.brand-logo img {
  max-width: 210px;
  width: 70%;
  height: auto;
  object-fit: contain;
}

.title-block {
  text-align: center;
  margin-bottom: 18px;
}

.title-block h1 {
  font-size: 22px;
  color: var(--primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.title-block p {
  font-size: 13px;
  color: #8b5b53;
  margin-top: 4px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e4b9a6, transparent);
  margin: 12px 0 18px;
}

.field-group {
  margin-bottom: 14px;
}

.field-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9d6b64;
  display: inline-block;
  margin-bottom: 5px;
}

.field-group input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  background: #fffdfc;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(123, 0, 31, 0.12);
  background: #fff;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b413a;
}

.remember-me input {
  accent-color: var(--primary);
}

.forgot-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.error-message {
  font-size: 12px;
  color: #b3261e;
  margin-bottom: 8px;
  display: none;
}

.login-btn {
  width: 100%;
  border-radius: 999px;
  padding: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--button);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(242, 100, 43, 0.55);
  margin-top: 4px;
  transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.login-btn:hover {
  background: var(--button-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(242, 100, 43, 0.65);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(242, 100, 43, 0.5);
}

.meta {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #8b5b53;
}

.meta strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.subtle {
  font-size: 11px;
  margin-top: 3px;
  color: #a6766a;
}

@media (max-width: 480px) {
  .login-card {
    padding: 20px 16px 24px;
    border-radius: 18px;
  }

  .title-block h1 {
    font-size: 18px;
  }

  .brand-logo img {
    width: 80%;
  }
}
