/* ==========================================
   1. PAGE LAYOUT & CONTAINER
   ========================================== */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f7f5ff;
  color: #15233b;
}


/* ==========================================
   2. AUTH CARD & HEADER DETAILS
   ========================================== */
.auth-card {
  width: min(560px, calc(100% - 32px));
  padding: 58px 40px 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(42, 34, 97, 0.12);
  text-align: center;
}

.crown {
  margin: auto auto 24px;
  color: #5146e8;
  font-size: 66px;
  line-height: 0.8;
}

/* Company Logo */
.company-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  justify-content: center;
}

.logo-icon {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.logo-icon svg,
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  text-align: left;
}

.logo-name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #15233b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.logo-tagline {
  display: block;
  font-size: 12px;
  color: #667085;
  margin-top: 2px;
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
  color: #15233b;
}

.auth-subtitle {
  margin: 12px 0 42px;
  color: #33415c;
  font-size: 17px;
}

.login-error {
  min-height: 20px;
  margin: 0 0 14px;
  color: #c81e3a;
  text-align: center;
}


/* ==========================================
   3. FORMS & INPUT FIELDS
   ========================================== */
.auth-card form {
  text-align: left;
}

.auth-card label {
  display: block;
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  border: 1px solid #c7c2df;
  border-radius: 10px;
  padding: 0 14px;
  color: #667085;
}

.field input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 0;
  background: transparent;
  font-size: 16px;
  color: #15233b;
}

.show-password {
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 17px;
}


/* ==========================================
   4. OPTIONS & CHECKBOXES
   ========================================== */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0;
}

.auth-options a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

.remember input {
  width: 20px;
  height: 20px;
}


/* ==========================================
   5. BUTTONS
   ========================================== */
.signin-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px;
  background: #5046e5;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.signin-button:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* ==========================================
   5b. OTP DIGIT BOXES & MODALS
   ========================================== */
.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 6px;
}

.otp-boxes input {
  width: 52px;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #15233b;
  border: 1px solid #c7c2df;
  border-radius: 10px;
  background: #fff;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

.otp-boxes input:focus {
  border-color: #5046e5;
  box-shadow: 0 0 0 3px rgba(80, 70, 229, .15);
}

.otp-expiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #667085;
  font-size: 13px;
  margin: 8px 0 22px;
}

.otp-expiry .material-symbols-outlined {
  font-size: 16px;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 35, 59, .45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.auth-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.auth-modal h2 {
  font-size: 19px;
  font-weight: 700;
  color: #15233b;
  margin: 0 0 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-modal p {
  font-size: 14px;
  color: #55617a;
  line-height: 1.6;
  margin: 0 0 24px;
}

.auth-modal button {
  background: #5046e5;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


/* ==========================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 560px) {
  .auth-card {
    padding: 46px 28px 30px;
  }
  
  .auth-options {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  
  .auth-subtitle {
    margin-bottom: 30px;
  }
}