* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(129, 199, 132, 0.25), transparent 32%),
    linear-gradient(135deg, #0f3d18 0%, #1b5e20 45%, #2e7d32 100%);
  color: #222;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.brand-box {
  text-align: center;
  margin-bottom: 25px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 25px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(27, 94, 32, 0.08);
}

.brand-box h1 {
  margin: 0;
  font-size: 25px;
  color: #1b5e20;
}

.brand-box p {
  margin: 10px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.9;
}

.login-step {
  width: 100%;
}

.hidden {
  display: none !important;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  height: 48px;
  border: 1px solid #d4d4d4;
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  background: #fafafa;
  color: #222;
  font-size: 16px;
  font-family: Tahoma, Arial, sans-serif;
  direction: ltr;
  text-align: left;
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: #aaa;
}

.form-group input:focus {
  border-color: #2e7d32;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: Tahoma, Arial, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#requestOtpBtn,
#verifyOtpBtn {
  background: #2e7d32;
  color: #fff;
}

#requestOtpBtn:hover,
#verifyOtpBtn:hover {
  background: #1b5e20;
}

.secondary-btn {
  margin-top: 10px;
  background: #eeeeee;
  color: #333;
}

.secondary-btn:hover {
  background: #e0e0e0;
}

.link-btn {
  width: auto;
  min-height: auto;
  display: block;
  margin: 14px auto 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: transparent;
  color: #1565c0;
  font-size: 13px;
}

.link-btn:hover {
  background: #e3f2fd;
}

.message-box {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.8;
}

.message-box.success {
  display: block;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.message-box.error {
  display: block;
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.message-box.info {
  display: block;
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
}

.login-footer {
  margin-top: 18px;
  color: #777;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
}

.spinner {
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-left: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  vertical-align: middle;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 420px) {
  .login-page {
    padding: 14px;
  }

  .login-card {
    border-radius: 22px;
    padding: 24px 18px 20px;
  }

  .brand-box h1 {
    font-size: 23px;
  }

  .brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 23px;
    font-size: 32px;
  }
}
