:root {
  color: #172033;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 30, 57, 0.11), transparent 31rem),
    radial-gradient(circle at 88% 86%, rgba(255, 207, 18, 0.18), transparent 29rem),
    #f5f7f8;
}

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

.login-card {
  position: relative;
  width: min(100%, 440px);
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(32, 38, 52, 0.14);
  backdrop-filter: blur(16px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #ff1e39 0 70%, #ffcf12 70%);
}

.brand-catalog {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 0 auto 20px;
}

.brand-catalog img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 11px;
  box-shadow: 0 7px 16px rgba(32, 38, 52, 0.15);
}

.brand-catalog img:nth-child(2) { transform: translateY(-3px); }
h1 { margin: 0 0 30px; text-align: center; color: #ef1732; font-size: clamp(28px, 6vw, 36px); line-height: 1.08; letter-spacing: -0.045em; }
form { display: grid; }
label { margin: 0 0 8px; color: #313b50; font-size: 13px; font-weight: 750; }
input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  outline: none;
  color: #172033;
  background: #fafbfb;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input:focus { border-color: #ff1e39; background: #fff; box-shadow: 0 0 0 4px rgba(255, 30, 57, 0.1); }
label:not(:first-of-type) { margin-top: 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 88px; }
.toggle-password {
  position: absolute;
  top: 50%;
  right: 13px;
  border: 0;
  padding: 5px;
  transform: translateY(-50%);
  color: #7a8498;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.login-error { min-height: 20px; margin: 12px 0 4px; color: #d7132c; font-size: 13px; }
.submit-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff1e39, #e7112b);
  box-shadow: 0 13px 26px rgba(239, 23, 50, 0.23);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(239, 23, 50, 0.29); }
.submit-button:disabled { cursor: wait; opacity: 0.72; transform: none; }
@media (max-width: 520px) {
  .login-card { padding: 34px 24px; border-radius: 22px; }
}
