body {
  min-height: 100vh;
}

.card {
  border-radius: 0.75rem;
}

.navbar-brand {
  font-weight: 700;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 48%, #581c87 100%);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding: 1rem;
}

.login-wrap {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.login-alert {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.login-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
}

.login-input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 10px;
  padding: 0.7rem 1rem;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
}

.login-link {
  color: #c7d2fe;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

.login-link:hover {
  color: #fff;
  text-decoration: underline;
}

.login-btn {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.5);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 1.25rem 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.login-google {
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  padding: 0.7rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.login-google:hover {
  color: #1f2937;
  background: #f3f4f6;
}

.login-prompt {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.login-field-error {
  color: #ffb4ab;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
  min-height: 1rem;
}

.login-password-wrap {
  position: relative;
}

.login-input-password {
  padding-right: 2.6rem;
}

.login-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-password-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}

.login-password-toggle .eye-closed {
  display: none;
}

.login-password-toggle.visible .eye-open {
  display: none;
}

.login-password-toggle.visible .eye-closed {
  display: block;
}

.role-options {
  display: flex;
  gap: 0.75rem;
}

.role-option {
  flex: 1;
  position: relative;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.role-card:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.role-option input:checked + .role-card {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.25);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35), 0 8px 20px rgba(124, 58, 237, 0.3);
}

.role-option input:focus-visible + .role-card {
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
}
