:root {
  --bg-a: #fff7f5;
  --bg-b: #ffeeee;
  --card: #ffffff;
  --text: #221f24;
  --muted: #6a6572;
  --soft: #fdf0ed;
  --soft-2: #f7e8e4;
  --red-a: #c90f25;
  --red-b: #e73435;
  --link: #b7121f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: linear-gradient(145deg, var(--bg-a), var(--bg-b));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 14px 28px;
}

.login-card {
  width: 100%;
  max-width: 432px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(170, 60, 60, 0.12);
  overflow: hidden;
}

.card-body {
  padding: 4px 28px 20px;
}

.brand {
  display: block;
  width: max-content;
  margin: 0 auto 0;
  line-height: 0;
}

.brand-image {
  width: 176px;
  height: auto;
  display: block;
}

h1 {
  text-align: center;
  margin: -32px 0 4px;
  font-size: 42px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.tagline {
  text-align: center;
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 14px;
}

.form { display: block; }

.label {
  display: block;
  font-size: 14px;
  color: #4e4752;
  margin-bottom: 6px;
  font-weight: 500;
}

.label-gap { margin-top: 14px; }

.input-wrap {
  height: 44px;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid #edd8d2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.icon { font-size: 14px; opacity: 0.55; }

input {
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  color: #4a4350;
  outline: none;
}

input::placeholder { color: #c0b6bc; }

.toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  opacity: 0.55;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.forgot-row a {
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
}

.btn-login {
  width: 100%;
  margin-top: 18px;
  height: 50px;
  border-radius: 28px;
  border: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--red-a), var(--red-b));
  box-shadow: 0 10px 20px rgba(201, 15, 37, 0.25);
  cursor: pointer;
}

.divider {
  margin: 18px 0 12px;
  text-align: center;
  font-size: 12px;
  color: #726b75;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-social {
  border: 1px solid #ebdcda;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  color: #4e4752;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.signup-text {
  text-align: center;
  margin: 16px 0 0;
  color: #5d5761;
  font-size: 14px;
}

.signup-text a { color: var(--link); font-weight: 700; }

.card-strip {
  height: 46px;
  background: #fdf2ee;
  border-top: 1px solid #f1e1dd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #7c737b;
  font-size: 13px;
}

.bottom-links {
  margin-top: 22px;
  color: #8e8691;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .card-body { padding: 24px 18px 16px; }
  .brand-image { width: 150px; }
  h1 { font-size: 34px; }
  .btn-login { font-size: 22px; }
  .social-row { grid-template-columns: 1fr; }
}
