   /* ===============================
   STEMfluence â€“ Auth UI (SAFE)
================================ */

.sf-auth-wrap {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top, #e9f9f1 0%, #f6f7f9 45%);
}

.sf-auth-wrap *,
.sf-auth-wrap *::before,
.sf-auth-wrap *::after {
  box-sizing: border-box;
  box-shadow: none !important;
}

/* Card */
.sf-auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 42px 42px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 25px 55px rgba(0,0,0,0.08);
}

/* Header */
.sf-auth-header {
  margin-bottom: 34px;
}

.sf-auth-header h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0b1f2a;
}

.sf-auth-header p {
  font-size: 15px;
  color: #5f6b72;
}

/* Fields */
.sf-field {
  position: relative;
  margin-bottom: 22px;
}

.sf-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #dcdfe4;
  font-size: 15px;
  outline: none;
  transition: .2s ease;
}

.sf-field input:focus {
  border-color: #39c67a;
  box-shadow: 0 0 0 3px rgba(57,198,122,.15);
}

/* Button */
.sf-btn-primary {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2370b6, #2370b6);
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(57,198,122,.35);
  color: #fff;
}

.sf-btn-primary:hover {
  transform: translateY(-1px);
}

/* Switch */
.sf-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
}

.sf-switch a {
  color: #2871b5;
  font-weight: 700;
  text-decoration: none;
}
/* Input error border */
.sf-field input.error {
    border-color: #e74c3c !important;
    transition: border-color 0.3s ease;
}

/* Normal focus style */
.sf-field input:focus {
    border-color: #39c67a;
    box-shadow: 0 0 0 3px rgba(57,198,122,0.15);
}

/* Error message styling */
.sf-field .error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.sf-field .error-msg.hidden {
    opacity: 0;
}