/* ---------- THEME VARIABLES ---------- */
:root {
  --dark-blue1: #0B335A;
  --dark-blue2: #1f5e9d;
  --hover-blue1: #1761a0;
  --hover-blue2: #0b4a83;
}

/* ---------- WRAPPER ---------- */
.login-container {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fafc;
  padding: 2rem 1rem;

}

/* ---------- CARD ---------- */
.login-card {
  position: relative;
  background: #fff;
  padding: 2.5rem 2rem;
  padding-bottom: 1rem;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(11, 51, 90, 0.3);
  text-align: center;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* ---------- TOP GRADIENT BAR ---------- */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #042B56 0%, #118AF2 50%, #0DC3F4 100%);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 2;
}

/* ---------- TITLE ---------- */
.login-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #042b56;
  font-weight: 700;
}

/* ---------- INPUTS ---------- */
.login-card input {
  width: 100%;
  padding: 12px 15px;
  margin: 5px 0;
  border: 1.6px solid #aabcd4;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  color: #042b56;
}

.login-card input:focus {
  border-color: var(--dark-blue2);
  box-shadow: 0 0 6px rgba(11, 51, 90, 0.15);
  outline: none;
}

.login-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #042b56;
    text-align: left;
}

/* ---------- PASSWORD FIELD ---------- */
.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 40px;
}

.password-field .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #7b8a9a;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.password-field .toggle-password:hover {
  color: #118AF2;
}

/* OAuth Buttons */
.oauth-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.google-btn,
.linkedin-btn {
  background: #ffffff;
  color: #042B56;
  border: 1px solid #042B56;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-family: "Satoshi", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(11, 51, 90, 0.08);
  margin-bottom: -8px;
}

.google-btn:hover,
.linkedin-btn:hover {
  transform: translateY(-1px);
}

/* ---------- BUTTON ---------- */
.login-card button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, #0B335A, #1f5e9d);
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-card button:hover {
  box-shadow: 0 6px 14px rgba(11, 51, 90, 0.25);
  transform: translateY(-2px);
}

/* ---------- MESSAGE ---------- */
.message {
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #d93025;
}
.message.success {
  color: #1a8754;
}
.message.info {
  color: #0B335A;
}

/* ---------- EMAIL ERROR ---------- */
.email-error {
  font-size: 13px;
  color: #d93025;
  text-align: left;
  display: none;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.email-error:not(:empty) {
  display: flex;
  margin: 4px 2px 0;
}

.email-error:not(:empty)::before {
  content: "⚠";
  font-size: 12px;
}

/* Red border when invalid */
.login-card input.input-error {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12) !important;
}

/* ---------- SWITCH TEXT ---------- */
.switch-text {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #042B56;
}

.switch-text a {
  color: #042b56;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.switch-text a:hover {
  color: #0d6efd;
}

/* Remove Chrome autofill blue background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #042B56 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.step-indicator {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 500;
  color: #042b56;
  background: rgba(13, 195, 245, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 3;
  border: 1px solid rgba(4, 43, 86, 0.5);
}

.auth-toggle {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 0.85rem;
  font-family: 'Satoshi', sans-serif;
  z-index: 5;
}

#auth-toggle-link,
.auth-toggle a {
  color: #042B56;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease,
              text-decoration 0.2s ease;
}

#auth-toggle-link:hover,
.auth-toggle a:hover {
  transform: translateY(-1px);
  text-decoration: underline;
}

@media (max-width: 780px) {
  .step-indicator {
    top: 75px;
    font-size: 12px;
    padding: 3px 10px;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .login-card {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
  .login-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }
  .login-card input {
    font-size: 14px;
    padding: 10px 13px;
  }
  .login-card button {
    font-size: 14px;
    padding: 11px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem 1rem;
    min-height: auto;
  }
  .login-card {
    padding: 1.8rem 1rem;
    border-radius: 12px;
  }
  .login-card h2 {
    font-size: 1.4rem;
  }
  .login-card input {
    font-size: 13px;
    padding: 9px 12px;
  }
  .login-card button {
    font-size: 13.5px;
    padding: 10px;
  }
}

/* ---------- MODAL STYLES ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-box {
  position: relative;
  background: #ffffff;
  padding: 70px 32px;
  border-radius: 18px;
  width: 92%;
  max-width: 478px;
  min-height: 300px;
  text-align: center;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.25);
  animation: scaleUp 0.3s ease-out;
  margin-top: 3%;
  overflow: hidden;
}

.modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #042B56 0%, #118AF2 50%, #0DC3F4 100%);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 2;
}

.close-btn {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: #042b56;
  font-weight: bold;
}

.continue-btn {
  margin-top: 22px;
  background: linear-gradient(90deg, #0B4A83, #0A63B0);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
