
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #101936;
  background:
    radial-gradient(circle at 12% 10%, rgba(10, 156, 166, .13), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(98, 67, 230, .12), transparent 30%),
    #ffffff;
  font-family: Inter, Arial, sans-serif;
}

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

.login-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid #e3e7f2;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 24px 70px rgba(27, 37, 80, .12);
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-header img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

form {
  display: grid;
  gap: 15px;
}

label {
  color: #18213d;
  font-weight: 900;
}

input {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  padding: 0 13px;
  border: 1px solid #d9dfed;
  border-radius: 11px;
  background: #eef4ff;
  font-size: 15px;
}

button {
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #0d58bd, #5739e8);
  box-shadow: 0 14px 30px rgba(87, 57, 232, .24);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

.status {
  min-height: 20px;
  margin: 0;
  color: #5739e8;
  text-align: center;
  font-weight: 900;
}

.status.error {
  color: #b42318;
}

.links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.links a {
  color: #5739e8;
  font-weight: 900;
  text-decoration: none;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 125px;
}

.password-toggle {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 18px;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #0c34bd, #062493);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 45, 168, 0.18);
}

@media (max-width: 480px) {
  .password-field input {
    padding-right: 108px;
  }

  .password-toggle {
    min-height: 34px;
    padding: 0 13px;
    font-size: 14px;
    right: 8px;
  }
}
