/* === Layout === */
.auth { min-height: 70vh; position: relative; padding: 48px 0; background: #0f172a0d; }
.auth .auth-wrap { position: relative; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.auth .auth-bg {
  position: absolute; inset: -40px 0 auto 0; height: 260px;
  filter: blur(0.5px); pointer-events: none; z-index: 0;
}
.form-error-box {
  background: #fff5f5; border: 1px solid #fecaca; color: #7f1d1d;
  border-radius: 12px; padding: 10px 12px; margin: 10px 0 14px;
}
.field-error {
  display:block; margin-top:6px; font-size:12px; color:#b91c1c;
}
.input-error .input-shell { border-color:#ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.08); }

.req { color: #dc2626; margin: 0 4px; font-weight: 800; }

/* === Card === */
.auth-card {
  position: relative; z-index: 1;
  margin: 0 auto; max-width: 520px;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 12px 28px rgba(2,6,23,.08), 0 2px 6px rgba(2,6,23,.05);
  padding: 24px 22px;
}

/* === Brand/title === */
.auth-brand { text-align: center; margin-bottom: 12px; }
.auth-logo { width: 72px; height: 72px; object-fit: contain; margin: 4px auto 10px; display:block; }
.auth-title { margin: 0 0 15px; font-size: 22px; color: #0f172a; font-weight: 800; letter-spacing: .2px; }

/* === Form === */
.auth-form { direction: rtl; }
.form-row { margin: 12px 0; }
.input-group .input-shell {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px 12px;
}
.input-group label{
    margin: 0px 5px 8px;
    display: block;
    letter-spacing: .7px;
    text-decoration: underline;
    font-weight: 600;
}
.input-group .icon { margin-left: 8px; font-size: 16px; opacity: .8; }
.auth-input {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
    padding: 4px 8px;
    font-weight: bold;
    letter-spacing: .3px;
}
.auth-input::placeholder { color: #94a3b8; }
.eye {
  border: 0; background: transparent; cursor: pointer; font-size: 16px; opacity: .7;
  margin-right: 6px; padding: 4px;
}
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.remember { display: inline-flex; gap: 8px; align-items: center; color: #0f172a; }

/* === Buttons & links === */
.btn-primary {
  display: inline-block; width: 100%;
  cursor: pointer;
  background: var(--main-color); color: #fff; border: 0;
  padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 14px rgba(30,126,52,.22);
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover { background: var(--main-color-dark); box-shadow: 0 8px 18px rgba(30,126,52,.28); }
.btn-primary:active { transform: translateY(1px); }

.link {text-decoration: none; border-bottom: 1px dashed transparent;
    color: var(--main-color-dark); border-bottom-color: rgba(30,126,52,.35); 
    transition: .3s;
}
.link:hover { border-bottom-color: var(--main-color);color: var(--main-color); }

.auth-links.center { margin-top: 8px; display: flex; gap: 8px; justify-content: center; align-items: center; color: #334155; }

/* === Divider === */
.auth-divider {
  height: 1px; background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 16px 0 8px;
}

/* === Responsiveness === */
@media (max-width: 560px) {
  .auth-card { padding: 18px 16px; }
  .auth-title { font-size: 20px; }
}
