/**
 * SIJO Member Login — front-end styles.
 */

.sijo-mlm-auth-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #ecfeff 100%);
}

.sijo-mlm-auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.sijo-mlm-auth-header {
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  color: #fff;
}

.sijo-mlm-auth-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.sijo-mlm-auth-subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

.sijo-mlm-auth-body {
  padding: 1.5rem;
}

.sijo-mlm-auth-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 0.9rem;
}

.sijo-mlm-auth-success {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.9rem;
}

.sijo-mlm-auth-field {
  margin-bottom: 1rem;
}

.sijo-mlm-auth-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.sijo-mlm-auth-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sijo-mlm-auth-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.sijo-mlm-auth-password-wrap {
  position: relative;
}

.sijo-mlm-auth-password-wrap .sijo-mlm-auth-input {
  padding-right: 4.25rem;
}

.sijo-mlm-auth-toggle-pass {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.sijo-mlm-auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.sijo-mlm-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
}

.sijo-mlm-auth-forgot {
  font-size: 0.875rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.sijo-mlm-auth-forgot:hover {
  text-decoration: underline;
}

.sijo-mlm-auth-submit {
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #06b6d4 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.sijo-mlm-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.34);
}

.sijo-mlm-auth-submit:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.sijo-mlm-auth-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sijo-login-spin 0.7s linear infinite;
}

@keyframes sijo-login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .sijo-mlm-auth-container {
    padding: 1rem 0.75rem;
    min-height: 60vh;
  }

  .sijo-mlm-auth-header {
    padding: 1.35rem 1.1rem 1rem;
  }

  .sijo-mlm-auth-body {
    padding: 1.15rem;
  }

  .sijo-mlm-auth-title {
    font-size: 1.2rem;
  }
}
