:root {
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --text: #2B2B2B;
  --muted: #767676;
  --line: #e7e1d8;
  --shadow-lg: 0 30px 60px rgba(23, 23, 23, 0.12);
  --shadow-md: 0 16px 30px rgba(23, 23, 23, 0.08);
  --green: #AEE669;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

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

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
}

.brand-main {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 208px;
  max-width: 100%;
  height: auto;
}

.auth-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  transform: translateY(-18px);
}

.auth-card {
  width: min(100%, 620px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.card-subtitle {
  margin: 10px 0 0;
  color: #666;
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: #454545;
  font-size: 14px;
  font-weight: 600;
}

.field-input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-md);
}

.field-input:focus {
  border-color: #c9d7b1;
  box-shadow: 0 0 0 4px rgba(176, 229, 92, 0.16);
}

.password-wrap {
  position: relative;
}

.password-input {
  padding-right: 62px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #62605b;
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toggle-password::before {
  display: none;
}

.toggle-password::after {
  display: none;
}

.eye-icon-visible {
  display: none;
}

.toggle-password.is-visible .eye-icon-hidden {
  display: none;
}

.toggle-password.is-visible .eye-icon-visible {
  display: block;
}

.toggle-password .eye-icon {
  grid-area: 1 / 1;
}

#passwordInput::-ms-reveal,
#passwordInput::-ms-clear {
  display: none;
}

#passwordInput::-webkit-credentials-auto-fill-button,
#passwordInput::-webkit-contacts-auto-fill-button {
  visibility: hidden;
}

.submit-btn {
  min-height: 64px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--green);
  color: #243018;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 16px 28px rgba(176, 229, 92, 0.28);
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-message.error {
  color: #c94b4b;
}

@media (max-width: 980px) {
  .auth-page {
    padding: 24px 18px 36px;
  }

  .auth-shell {
    justify-content: stretch;
    transform: translateY(-10px);
  }

  .auth-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .card-top,
  .meta-row {
    flex-direction: column;
    align-items: stretch;
  }
}
