.auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #D0E3FF;
  background-image: url("../img/login-bg.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  min-height: 560px;
  padding: 46px 45px 40px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(55, 80, 140, 0.13);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 26px;
}

.auth-logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.auth-logo-text {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-title {
  position: relative;
  margin: 0 0 42px;
  text-align: center;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-primary);
}

.auth-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 40px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--color-primary);
}

.auth-form {
  width: 100%;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text-sub);
}

.label-note {
  margin-left: 6px;
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: 400;
}

.form-field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text-black);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(67, 94, 180, 0.12);
}

.primary-button {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 42px;
  border: none;
  border-radius: 3px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.primary-button:hover {
  background: var(--color-primary-active);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.65;
}

.primary-button:disabled:active {
  transform: none;
}

.auth-link-area {
  margin-top: 30px;
  text-align: center;
}

.auth-link-area a {
  font-size: 15px;
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-error {
  margin: 4px 0 16px;
  color: var(--color-error);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.login-error[hidden] {
  display: none;
}

.auth-description {
  margin: 0 0 30px;
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 640px) {
  .auth-page {
    align-items: flex-start;
    padding: 32px 16px;
  }

  .auth-card {
    max-width: 100%;
    min-height: auto;
    padding: 38px 28px 34px;
  }

  .auth-logo-text {
    font-size: 25px;
  }

  .auth-title {
    font-size: 21px;
  }
}
