* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.error-message {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  padding: 10px 15px;
  color: #b30000;
  background: #ffe6e6;
  border: 1px solid #ff9999;
  border-radius: 5px;
  font-size: 14px;
  text-align: center;
  z-index: 10;

  display: none;
}

 .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 40, 0.25);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease-in-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 36px 42px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    inset 0 0 6px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.5s ease;
  text-align: center;
  max-width: 320px;
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid #00d4ff;
  border-right: 3px solid #2196f3;
  border-bottom: 3px solid #00bcd4;
  animation: spinGlow 1s linear infinite;
  margin-bottom: 18px;
  box-shadow: 0 0 12px #00d4ff66;
}

@keyframes spinGlow {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 0 8px #00d4ff66;
  }
  50% {
    transform: rotate(180deg);
    box-shadow: 0 0 16px #00bcd477;
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 0 8px #00d4ff66;
  }
}

.loading-message {
  font-size: 1.1rem;
  font-weight: 500;
  color: #e0f7fa;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  animation: pulseText 1.8s ease-in-out infinite;
  margin-bottom: 6px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseText {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-bar::before {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00d4ff, #2196f3);
  animation: progressGrow 2.2s infinite ease-in-out;
  border-radius: 5px;
}

@keyframes progressGrow {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}







.error-message.show {
  display: block;
}

body, html {
  height: 100%;
  width: 100%;
}

/* RADIO BUTTONS */
.custom-radio-container {
  display: flex;
  flex-direction: column;
  gap: 16px; 
  margin-bottom: 24px; 
}

.custom-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px; 
  color: #dce6ff;
  padding: 8px 4px; 
  border-radius: 6px;
  transition: background 0.3s ease;
}

.custom-radio:hover {
  background: rgba(91, 124, 255, 0.1); 
}

.custom-radio input[type="radio"] {
  display: none;
}

.custom-radio span {
  height: 20px;
  width: 20px;
  border: 2px solid #5d91ff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 14px;
  position: relative;
  transition: 0.3s all ease;
  box-shadow: 0 0 5px rgba(91, 124, 255, 0.4);
}

.custom-radio input[type="radio"]:checked + span {
  background: #355cfd;
  box-shadow: 0 0 10px #5d91ff, 0 0 20px rgba(91, 124, 255, 0.6);
}

.custom-radio input[type="radio"]:checked + span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* BACKGROUND */
.overlay {
  background: url('./imgs/honda_bg.jpg') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* LOGIN BOX */
.login-box {
  width: 100%;
  max-width: 350px;
  padding: 30px 25px;
  border-radius: 16px;
  background: rgba(20, 30, 60, 0.7); /* dark blue glass */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0eaff;
  animation: fadeIn 0.8s ease;
  text-align: center;
}

.login-box h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #e6ecff;
}

.login-box p {
  font-size: 14px;
  color: #cfd8ff;
  margin-bottom: 20px;
}

/* FORM ELEMENTS */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #cdd9ff;
  font-weight: 500;
}

/* INPUTS & SELECTS */
input,
select {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0eaff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
}

input::placeholder,
select:invalid {
  color: #bbc7e8;
}

input:focus,
select:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid #5d91ff;
  box-shadow: 0 0 6px #5d91ff;
}

/* SELECT DROPDOWN ICON */
select {
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

select option {
  background: #fff;
  color: #000;
}

/* BUTTONS */
button,
.sso-button {
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button {
  border: none;
  background: linear-gradient(135deg, #355cfd, #5b7cff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 124, 255, 0.4);
}

button:hover {
  background: linear-gradient(135deg, #2748d1, #4a68f0);
  box-shadow: 0 6px 16px rgba(91, 124, 255, 0.5);
}

.sso-button {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: #dbe7ff;
}

.sso-button:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(91, 124, 255, 0.3);
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #cdd9ff;
  font-weight: 500;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(205, 217, 255, 0.4);
}

.divider:not(:empty)::before {
  margin-right: 12px;
}

.divider:not(:empty)::after {
  margin-left: 12px;
}

.divider span {
  background: rgba(20, 30, 60, 0.8);
  padding: 2px 10px;
  border-radius: 6px;
}


/* TOASTS */
.toast {
  visibility: hidden;
  min-width: 280px;
  background-color: #333;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 999;
  bottom: 30px;
  right: 30px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 40px;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .login-box {
    max-width: 95%;
    padding: 25px 20px;
  }
}
