
* {
  box-sizing: border-box;
}

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #10234f;
  background: #f4f7fc;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(91, 132, 255, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(0, 190, 150, 0.10),
      transparent 30%
    ),
    #f4f7fc;
}

.login-box {
  width: 100%;
  max-width: 430px;
  padding: 36px 32px 30px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e6ebf4;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(16, 35, 79, 0.12);
}

.login-box::before {
  content: "";
  display: block;
  width: 175px;
  height: 65px;
  margin: 0 auto 24px;
  background: url("logo1.jpg") center / contain no-repeat;
}

h1 {
  margin: 0 0 10px;
  color: #10234f;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 700;
}

.login-box h1::after {
  content: "Sign in to manage your account";
  display: block;
  margin-top: 10px;
  color: #71809a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  margin: 22px 0 14px;
  border: 1px solid #dce3ef;
  border-radius: 11px;
  background: #fbfcff;
  color: #10234f;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input::placeholder {
  color: #8a96aa;
}

input:focus {
  border-color: #1768df;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 104, 223, 0.10);
}

#otp {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 7px;
}

button {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 13px 20px;
  border: 0;
  border-radius: 11px;
  background: #1768df;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(23, 104, 223, 0.18);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

button:hover:not(:disabled) {
  background: #1056bf;
  box-shadow: 0 8px 18px rgba(23, 104, 223, 0.23);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(23, 104, 223, 0.35);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

#otpArea {
  margin-top: 22px;
}

#otpArea[hidden] {
  display: none !important;
}

#otpArea input {
  margin-top: 0;
}

#message {
  min-height: 20px;
  margin: 20px 0 0;
  color: #60708a;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#message:empty {
  display: none;
}

#message.error {
  color: #b42332;
}

#message.success {
  color: #087b55;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .login-box {
    padding: 30px 22px 26px;
    border-radius: 20px;
  }

  h1 {
    font-size: 26px;
  }

  .login-box::before {
    width: 150px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
