* {
  margin: 0;
  padding: 0;
  font-family: "Calibri", "Segoe UI", sans-serif;
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top, rgba(42, 73, 130, 0.18), transparent 30%),
    linear-gradient(135deg, #02040a, #0a0f1d 45%, #03050b 100%);
  color: #ffffff;
}

.main-container {
  min-height: 100vh;
  min-width: 360px;
  padding: 20px;
}

.centered-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 430px;
  height: 560px;
  display: grid;
  position: relative;
}

.icon {
  position: absolute;
  width: 92px;
  height: 92px;
  display: grid;
  place-content: center;
  z-index: 2;
  justify-self: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #12192b, #0a1020);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4d27c;
  font-size: 42px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  letter-spacing: 1px;
}

form {
  flex-direction: column;
  padding: 34px 28px 18px;
  height: 510px;
  border-radius: 30px;
  background: rgba(11, 17, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: absolute;
  width: 100%;
  bottom: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.title {
  position: relative;
  margin: 52px 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.4px;
}

.subtitle {
  color: #d7deee;
  text-align: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.hint {
  color: #9fb2d9;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  max-width: 310px;
}

.msg {
  color: #ff6767;
  min-height: 42px;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 6px;
  padding: 0 10px;
}

.field {
  display: flex;
  position: relative;
  width: 100%;
  margin-top: 6px;
}

.field-label {
  position: absolute;
  right: 0;
  bottom: 12px;
  color: #7f91b8;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
}

form input[type="text"] {
  display: block;
  outline: none;
  width: 100%;
  border: none;
  font-size: 17px;
  color: #edf2ff;
  margin: 18px 0 8px;
  caret-color: #ffffff;
  background: transparent;
  padding: 12px 30px 8px 0;
  border-bottom: 1px solid rgba(126, 145, 182, 0.45);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

form input[type="text"]:focus {
  border-bottom-color: #f4d27c;
  transform: translateY(-1px);
}

form input::placeholder {
  color: #667897;
  letter-spacing: 0.2px;
}

.rules {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: #8ca0c6;
  font-size: 13px;
}

.btn-container {
  padding: 24px 20px;
  transition: 0.2s linear;
}

#login-btn {
  padding: 11px 26px;
  border: none;
  background: linear-gradient(135deg, #1a4e85, #163760);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border-radius: 16px;
  transition: 0.3s ease;
  margin: 20px 0;
  min-width: 130px;
  box-shadow: 0 10px 24px rgba(18, 49, 86, 0.4);
}

#login-btn:hover {
  cursor: pointer;
}

#login-btn:disabled {
  opacity: 0.88;
  cursor: not-allowed;
}

.footer-note {
  color: #63728f;
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}

.shift-left {
  transform: translateX(-120%);
}

.shift-right {
  transform: translateX(120%);
}

.shift-top {
  transform: translateY(-150%);
}

.shift-bottom {
  transform: translateY(150%);
}

.no-shift {
  transform: translate(0%, 0%);
}

@media (max-width: 520px) {
  .form-container {
    width: 100%;
    max-width: 430px;
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    font-size: 15px;
  }
}