/**
 * Süperform ERP – Login Ekranı
 * login.css
 *
 * @author    Bekir Özberk <ozberkmedya@gmail.com>
 * @copyright 2026 Bekir Özberk
 * @version   1.0.0
 */

/* ── Değişkenler ─────────────────────────────────────── */
:root {
  --bekk-arka:       #0B3954;
  --bekk-vurgu:      #FFB128;
  --bekk-bg:         #F0F4F8;
  --bekk-white:      #FFFFFF;
  --bekk-metin:      #0B3954;
  --bekk-metin-soluk:#6B7C93;
  --bekk-sinir:      #D1D9E0;
  --bekk-danger:     #E53E3E;
  --bekk-radius:     10px;
  --bekk-shadow:     0 4px 24px rgba(11,57,84,.12);
  --bekk-gecis:      150ms ease;
  --bekk-font:       "Inter Tight", system-ui, -apple-system, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Reset / Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body.login {
  height: 100%;
  background: var(--bekk-bg) !important;
  font-family: var(--bekk-font) !important;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bekk-metin);
}

/* WP login varsayılanlarını sıfırla */
body.login #login,
body.login div#login {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
body.login h1 a { display: none; }
body.login #login_error,
body.login .message,
body.login .success { display: none !important; }

/* ── Layout: Wrap ─────────────────────────────────────── */
.bekk-wrap {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── Sol Panel ────────────────────────────────────────── */
.bekk-sol {
  position: relative;
  width: 42%;
  flex-shrink: 0;
  background: var(--bekk-arka);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.bekk-desen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bekk-sol-icerik {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  width: 100%;
  gap: 32px;
}

/* Logo */
.bekk-logo-link {
  display: inline-block;
  text-decoration: none;
}
.bekk-logo {
  display: block;
  max-width: 190px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--bekk-gecis);
}
.bekk-logo-link:hover .bekk-logo { opacity: .85; }
.bekk-logo-yedek {
  display: none;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}

/* Başlık grubu */
.bekk-sol-baslik { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.bekk-rozet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,177,40,.15);
  color: var(--bekk-vurgu);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
  border: 1px solid rgba(255,177,40,.25);
}
.bekk-rozet-nokta {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bekk-vurgu);
  animation: bekk-nabiz 2s ease infinite;
}
@keyframes bekk-nabiz {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.bekk-sol-h1 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -.02em;
}

.bekk-sol-aciklama {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

/* Özellik listesi */
.bekk-ozellik-listesi {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.bekk-ozellik-listesi li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 500;
}
.bekk-ozellik-ikon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,177,40,.18);
  border: 1px solid rgba(255,177,40,.3);
  color: var(--bekk-vurgu);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sol alt footer */
.bekk-sol-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.35);
  font-size: 12px;
}

/* ── Sağ Panel ─────────────────────────────────────────── */
.bekk-sag {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bekk-bg);
  min-height: 100vh;
}

/* Form kartı */
.bekk-form-kart {
  width: 100%;
  max-width: 440px;
  background: var(--bekk-white);
  border-radius: 16px;
  box-shadow: var(--bekk-shadow);
  padding: 40px 44px;
  border: 1px solid rgba(209,217,224,.7);
}

/* Form başlık */
.bekk-form-baslik {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.bekk-form-ikon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bekk-arka) 0%, #1A6FA0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11,57,84,.25);
}
.bekk-form-h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--bekk-metin);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.bekk-form-alt {
  font-size: 13px;
  color: var(--bekk-metin-soluk);
  margin: 0;
}

/* ── WP Form Elementleri ──────────────────────────────── */
#loginform,
#lostpasswordform {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#loginform .login-username,
#loginform .login-password,
#lostpasswordform .login-username {
  margin-bottom: 20px;
}

#loginform label,
#lostpasswordform label {
  font-family: var(--bekk-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--bekk-metin) !important;
  display: block !important;
  margin-bottom: 6px !important;
}

#user_login,
#user_pass,
#user_email {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  border: 1.5px solid var(--bekk-sinir) !important;
  border-radius: var(--bekk-radius) !important;
  font-family: var(--bekk-font) !important;
  font-size: 14.5px !important;
  color: var(--bekk-metin) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color var(--bekk-gecis), box-shadow var(--bekk-gecis) !important;
  outline: none !important;
  margin: 0 !important;
}
#user_login:focus,
#user_pass:focus,
#user_email:focus {
  border-color: var(--bekk-vurgu) !important;
  box-shadow: 0 0 0 3px rgba(255,177,40,.18) !important;
}

/* Şifre göster/gizle satırı */
.login-password .wp-pwd {
  position: relative !important;
}
.login-password .wp-pwd button.button-link {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--bekk-metin-soluk) !important;
}

/* Beni hatırla */
.login-remember {
  margin: 4px 0 24px !important;
}
.login-remember label {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--bekk-metin-soluk) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.login-remember input[type="checkbox"] {
  accent-color: var(--bekk-vurgu);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Giriş Yap butonu */
#wp-submit,
.submit input[type="submit"] {
  width: 100% !important;
  height: 48px !important;
  background: var(--bekk-vurgu) !important;
  color: var(--bekk-arka) !important;
  font-family: var(--bekk-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  border: none !important;
  border-radius: var(--bekk-radius) !important;
  cursor: pointer !important;
  transition: background-color var(--bekk-gecis), transform var(--bekk-gecis), box-shadow var(--bekk-gecis) !important;
  box-shadow: 0 4px 14px rgba(255,177,40,.35) !important;
  text-shadow: none !important;
}
#wp-submit:hover,
.submit input[type="submit"]:hover {
  background: #e6a020 !important;
  box-shadow: 0 6px 20px rgba(255,177,40,.45) !important;
  transform: translateY(-1px) !important;
}
#wp-submit:active,
.submit input[type="submit"]:active {
  transform: translateY(0) !important;
}

/* Şifremi unuttum */
#nav {
  text-align: center;
  margin-top: 20px !important;
}
#nav a {
  font-family: var(--bekk-font) !important;
  font-size: 13px !important;
  color: var(--bekk-metin-soluk) !important;
  text-decoration: none !important;
  transition: color var(--bekk-gecis) !important;
}
#nav a:hover { color: var(--bekk-arka) !important; }

/* Hata mesajı */
#login_error {
  display: block !important;
  background: #FFF5F5 !important;
  border: 1.5px solid #FED7D7 !important;
  border-radius: var(--bekk-radius) !important;
  color: var(--bekk-danger) !important;
  font-family: var(--bekk-font) !important;
  font-size: 13.5px !important;
  padding: 12px 16px !important;
  margin-bottom: 20px !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}
#login_error a { color: var(--bekk-danger) !important; font-weight: 600 !important; }

/* Başarı mesajı */
.message {
  display: block !important;
  background: #F0FFF4 !important;
  border: 1.5px solid #9AE6B4 !important;
  border-radius: var(--bekk-radius) !important;
  color: #276749 !important;
  font-family: var(--bekk-font) !important;
  font-size: 13.5px !important;
  padding: 12px 16px !important;
  margin-bottom: 20px !important;
  box-shadow: none !important;
}

/* ── Güvenlik notu ─────────────────────────────────────── */
.bekk-guvenlik-notu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--bekk-metin-soluk);
}
.bekk-guvenlik-notu svg { color: #38A169; flex-shrink: 0; }

/* ── Sağ footer ─────────────────────────────────────────── */
.bekk-sag-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--bekk-metin-soluk);
}
.bekk-sag-footer a {
  color: var(--bekk-metin-soluk);
  text-decoration: none;
  transition: color var(--bekk-gecis);
}
.bekk-sag-footer a:hover { color: var(--bekk-arka); }

/* WP "Powered by" ve back link gizle */
#backtoblog, .privacy-policy-page-link { display: none !important; }

/* ── Şifre gücü göstergesi ────────────────────────────── */
#pass-strength-result {
  background: var(--bekk-bg) !important;
  border: 1.5px solid var(--bekk-sinir) !important;
  border-radius: 6px !important;
  font-family: var(--bekk-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--bekk-metin) !important;
  margin-top: 8px !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .bekk-sol { display: none; }
  .bekk-sag { min-height: 100svh; padding: 32px 20px; }
  .bekk-form-kart { padding: 32px 28px; }
}

@media (max-width: 480px) {
  .bekk-form-kart { padding: 28px 20px; border-radius: 12px; }
  .bekk-form-h2 { font-size: 20px; }
}
