:root {
  --page-bg: #1c1d22;
  --card-bg: #f8f8f8;
  --text-main: #2f3138;
  --text-soft: #7a7d87;
  --border: #d8dbe1;
  --border-strong: #cfd3db;
  --brand: #ea2424;
  --brand-hover: #d91c1c;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(rgba(21, 22, 27, 0.78), rgba(21, 22, 27, 0.88)),
    url("https://gilar.com.br/2025/images/slider/slider-1.jpg") center / cover no-repeat;
}

input,
button {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 336px);
  background: linear-gradient(180deg, #fefefe 0%, #f7f7f7 100%);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px 30px 30px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-badge {
  min-width: 144px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(234, 36, 36, 0.04);
  text-align: center;
}

.logo-image {
  display: block;
  width: 116px;
  height: auto;
}

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

.hero h1 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-soft);
}

.login-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  font-size: 0.78rem;
  font-weight: 500;
}

.input-shell {
  position: relative;
}

.input-shell input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  padding: 0 40px 0 30px;
  font-size: 0.78rem;
  color: var(--text-main);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input-shell input::placeholder {
  color: #9aa0ad;
}

.input-shell input:focus {
  outline: none;
  border-color: rgba(234, 36, 36, 0.5);
  box-shadow: 0 0 0 3px rgba(234, 36, 36, 0.08);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a9aeb9;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.input-icon-right {
  left: auto;
  right: 10px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #666c76;
  cursor: pointer;
}

.remember input {
  margin: 0;
  width: 12px;
  height: 12px;
  accent-color: var(--brand);
}

.submit-button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #f02a2a 0%, var(--brand) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(234, 36, 36, 0.2);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.submit-button:hover {
  background: linear-gradient(180deg, #ea2424 0%, var(--brand-hover) 100%);
  box-shadow: 0 15px 26px rgba(234, 36, 36, 0.24);
  transform: translateY(-1px);
}

.submit-button svg {
  width: 14px;
  height: 14px;
}

.support {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7ec;
  text-align: center;
}

.support p {
  margin: 0;
  font-size: 0.72rem;
  color: #6f7380;
}

.support a {
  color: var(--brand);
  text-decoration: none;
}

.support a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .page {
    padding: 16px;
  }

  .login-card {
    width: min(100%, 360px);
    padding-inline: 22px;
  }
}
