/* Global Reset & Typography */
@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+SemiExpanded:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
  /* Main Theme Colors - Updated to Navy and Gold */
  --primary-color: #B88E44;
  --primary-hover: #A67C2E;
  --secondary-color: #0A192F;
  --bg-gradient: linear-gradient(135deg, #020C1B 0%, #0A192F 100%);

  --card-bg: rgba(255, 255, 255, 0.98);
  --text-color: #2b2d42;
  --text-muted: #8892B0;
  --input-bg: #f8f9fa;
  --input-border: #e9ecef;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
  --radius-lg: 20px;
  --body-font: "DM Sans", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-bg {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.login-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: fadeIn 0.6s ease-out;
}

.login-card h4 {
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--input-bg);
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(184, 142, 68, 0.15);
  background-color: #fff;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.alert-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Link Styling */
.hover-primary {
  color: var(--text-muted) !important;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none !important;
}

.hover-primary:hover {
  color: var(--primary-color) !important;
}

.auth-footer-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.text-gold {
  color: var(--primary-color) !important;
}

/* Custom Input Group for OTP */
.input-group {
  display: flex !important;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  flex: 1;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group .btn-send-otp {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.input-group .btn-send-otp:hover {
  background: var(--primary-hover);
}

.input-group .btn-send-otp:disabled {
  background: #ccc;
  cursor: not-allowed;
}