/* =====================================================
   SARMAL - Giris ekrani stilleri
   Dosya: C:\SARMAL\web\login.css
   Surum: 0.5.0
   ===================================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(60% 50% at 50% 0%, #13284F 0%, rgba(6, 10, 19, 0) 70%), var(--bg);
}
.login-glow {
  position: absolute;
  width: 520px; height: 520px;
  left: 50%; top: 50%;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, rgba(47, 107, 255, 0.18) 0%, rgba(47, 107, 255, 0) 65%);
  pointer-events: none;
}
.login-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  border: 1px solid #23406F;
  border-radius: 18px;
  background: rgba(11, 20, 39, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 26px 28px 28px;
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.login-brand img { filter: drop-shadow(0 0 14px rgba(46, 230, 166, 0.35)); }
.login-brand div { display: flex; flex-direction: column; gap: 3px; }
.login-brand strong { font-size: 28px; font-weight: 800; letter-spacing: .5px; }
.login-brand span { font-size: 10.5px; letter-spacing: 2.5px; color: #2EE6A6; font-weight: 600; }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form h1 { margin: 0; font-size: 20px; font-weight: 600; }
.login-sub { margin: -6px 0 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.setup-badge {
  align-self: flex-start;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--cyan);
  border: 1px solid #1F4F66;
  background: #0E2A3A;
  border-radius: 6px;
  padding: 3px 8px;
}

.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.field em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.field input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #08101F;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  width: 100%;
}
.field input:focus { border-color: #3B73E0; box-shadow: 0 0 0 3px rgba(59, 115, 224, 0.25); }
/* Tarayici e-posta/sifreyi kendisi doldurdugunda kutular beyaza donmesin */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #08101F inset;
  box-shadow: 0 0 0 1000px #08101F inset;
  transition: background-color 9999s ease-out 0s;
}
.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #08101F inset, 0 0 0 3px rgba(59, 115, 224, 0.25);
  box-shadow: 0 0 0 1000px #08101F inset, 0 0 0 3px rgba(59, 115, 224, 0.25);
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle {
  position: absolute;
  right: 6px; top: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #12264A;
  color: var(--text-2);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.pw-toggle:hover { background: #1A3360; }

.form-error {
  padding: 9px 12px;
  border: 1px solid #5A2433;
  border-radius: 10px;
  background: #2A1018;
  color: #FFB3BE;
  font-size: 12.5px;
  line-height: 1.4;
}
.btn-block { width: 100%; justify-content: center; margin-top: 4px; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.login-loading { font-size: 13px; color: var(--muted); text-align: center; padding: 10px 0; }
.login-foot { position: relative; font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* v0.18.0 - iki adimli giris */
.totp-input { font-family: 'Geist Mono', monospace !important; font-size: 24px !important; letter-spacing: 10px; text-align: center; }
.totp-back { background: none; border: 0; color: var(--link, #7DB4FF); font: inherit; font-size: 13px; cursor: pointer; padding: 4px; }
.totp-back:hover { text-decoration: underline; }

/* Parolami unuttum baglantisi ve basari mesaji */
.login-link { background: none; border: 0; color: #7FB4FF; font: inherit; font-size: 13px; cursor: pointer; padding: 10px 0 0; width: 100%; text-align: center; }
.login-link:hover { color: #A9CCFF; text-decoration: underline; }
.form-ok { background: rgba(46,230,166,.12); border: 1px solid rgba(46,230,166,.4); color: #BFF5DF; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
