:root {
  --primary-blue: #2c5aa0;
  --primary-blue-light: #3d73cc;
  --primary-blue-dark: #1e3d6f;
  --secondary-gray: #5a6b7d;
  --accent-gold: #d4af37;
  --white: #ffffff;
  --light-gray: #f8f9fb;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --success-green: #28a745;
  --text-dark: #2c3e50;
  --text-light: #000000;
  --shadow-light: 0 2px 10px rgba(44, 90, 160, 0.1);
  --shadow-medium: 0 5px 20px rgba(44, 90, 160, 0.15);
  --shadow-strong: 0 10px 30px rgba(44, 90, 160, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}
* {
  box-sizing: border-box;
}
body {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%) !important;
  color: var(--text-dark);
  font-family: 'Poppins', 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
   
}
.logo {
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: 0.25em;
  color: var(--primary-blue);
  cursor: pointer;
  margin-bottom: 1.5rem;
  user-select: none;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo:hover {
  transform: scale(1.05);
  color: var(--primary-blue-light);
}
.logo img {
  height: 54px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 0.7em;
  transition: var(--transition);
}
.logo img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}
.login-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 2.5rem 2rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  color: var(--text-dark);
  border: 1px solid var(--primary-blue);
  position: relative;
  overflow: hidden;
  margin-top: 1.5em;
}
.login-card h1 {
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--primary-blue);
  text-shadow: none;
}
form label {
  display: block;
  margin: 1.1rem 0 0.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  font-size: 1em;
}
form input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background: var(--light-gray);
  color: var(--text-dark);
  font-size: 1.08em;
  font-weight: 500;
  margin-bottom: 0.5em;
  transition: var(--transition);
}
form input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-light);
  background: var(--white);
}

/* Password wrapper to position visibility toggle */
.password-wrapper {
  position: relative;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #1976d2;
  user-select: none;
  transition: color 0.3s;
}
.password-toggle:hover {
  color: #00e6ff;
}

/* Forgot Password link */
.forgot-password {
  display: block;
  text-align: right;
  color: #1976d2;
  font-size: 0.98em;
  margin-top: 0.2em;
  margin-bottom: 0.7em;
  text-decoration: none;
  font-weight: 500;
}
.forgot-password:hover {
  color: #00e6ff;
  text-decoration: underline;
}

/* Button style */
.btn {
  width: 100%;
  padding: 0.9em 0;
  border-radius: var(--border-radius);
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1em;
  border: none;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}
.btn:hover, .btn:focus {
  background: var(--primary-blue-light);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}
.btn-spinner {
  display: inline-block;
  vertical-align: middle;
}
.spinner-svg {
  animation: rotate 1s linear infinite;
}
.spinner-svg .path {
  stroke: #fff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
  100% { transform: rotate(360deg); }
}
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.signup-link {
  text-align: center;
  margin-top: 1.2em;
  color: #232526;
  font-size: 1em;
}
.signup-link a {
  color: #1976d2;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.signup-link a:hover {
  color: #00e6ff;
  text-decoration: underline;
}

/* Loading spinner overlay */
.login-loading-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 1.5em;
}
.login-loading-overlay .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  color: #1976d2;
}

@media (max-width: 575.98px) {
  .login-container {
    padding: 1.2rem 0.5rem 1.5rem;
  }
  .login-card {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    border-radius: 1em;
  }
}
