@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #eff6ff 0%, #f8fafc 45%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #0f172a;
}

.container {
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.logo-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.22));
}

.title {
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.subtitle {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
}

.login-box {
  backdrop-filter: blur(14px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 30px 22px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.forgot {
  display: none;
}
.reset {
  display: none;
}
.login {
  display: block;
}

label {
  display: block;
  text-align: left;
  margin-top: 14px;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
}

.login-input {
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.98rem;
  display: block;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
}

.login-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input::placeholder {
  color: #94a3b8;
}

.password-wrapper {
  position: relative;
}

.eye-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.forgot-link {
  display: block;
  text-align: left;
  margin-top: 10px;
  color: #2563eb;
  font-size: 0.9em;
  text-decoration: none;
}
.forgot-link:focus,
.forgot-link:hover {
  outline: none;
  text-decoration: underline;
}

.forgot-panel label {
  margin-top: 12px;
}

.forgot-btn {
  margin-top: 12px;
}

#register-section,
#forgot-section {
  text-align: left;
}

#register-section label,
#forgot-section label {
  margin-top: 14px;
}

#register-section .login-input,
#forgot-section .login-input {
  margin-top: 6px;
}

#register-section .login-btn,
#forgot-section .login-btn {
  margin-top: 16px;
}

#register-back-btn,
#forgot-back-btn {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 4px;
}

#open-register-link {
  margin-top: 12px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  margin-top: 18px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.2s ease;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.login-btn:focus, .login-btn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  outline: none;
}

.otp-inline-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.otp-inline-btn {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.otp-inline-btn:hover,
.otp-inline-btn:focus {
  outline: none;
  text-decoration: underline;
  transform: none;
  filter: none;
}

.otp-resend-btn.is-cooldown,
.otp-resend-btn:disabled {
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  backdrop-filter: none;
  text-decoration: none !important;
}

.signup-link {
  display: block;
  margin-top: 15px;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
}
.signup-link:hover,
.signup-link:focus {
  text-decoration: underline;
}
.signup-link:focus, .signup-link:hover{
	outline: none;
}

@media (min-width: 768px) {
  .container {
    max-width: 500px;
  }

  .title {
    font-size: 1.7rem;
  }

  .login-box {
    padding: 40px 30px;
  }
}
