/* @section: BASE — reset, değişkenler, gövde */
:root {
  --red: #c90000;
  --red-dark: #9f0000;
  --ink: #202a33;
  --muted: #53606b;
  --line: #d6dbe0;
  --soft: #f3f5f7;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* @section: GATE — sistem.html şifre kapısı */
.gate {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17,24,32,.94), rgba(112,0,0,.9)),
    url("../images/red-business-bg.jpg") center / cover;
}
.locked .gate { display: grid; }
.locked > :not(.gate) { display: none; }
.gate-box {
  width: min(430px, 100%);
  padding: 32px;
  color: var(--white);
  background: rgba(13,18,24,.86);
  border: 1px solid rgba(255,255,255,.18);
}
.gate-box img { width: 280px; }
.gate-box h1 { margin: 0 0 22px; }
.gate-box label { display: block; margin-bottom: 8px; }
.gate-box input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.gate-box button {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
}
.gate-error { min-height: 20px; color: #ffd8d8; }

/* @section: LOGIN-MODAL — modern giriş modalı */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-modal.open {
  display: flex;
  animation: login-fade .22s ease both;
}
@keyframes login-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 28, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.login-box {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: login-pop .3s cubic-bezier(.2,1.1,.4,1) both;
}
@keyframes login-pop {
  from { transform: translateY(24px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Üst gradient brand bandı */
.login-head {
  position: relative;
  padding: 32px 28px 26px;
  text-align: center;
  background: var(--ink);
  color: #fff;
}
.login-logo {
  width: clamp(160px, 18vw, 200px);
  height: auto;
  display: block;
  margin: 0 auto 12px;
}
.login-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
}
.login-head p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

/* Kapatma butonu */
.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.login-close:hover { background: var(--red); transform: rotate(90deg); }
.login-close svg { width: 16px; height: 16px; fill: #fff; }

/* Form body */
.login-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 22px;
}

/* Input field */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lf-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lf-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.lf-forgot {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}
.lf-forgot:hover { text-decoration: underline; }

.lf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
  transition: border-color .15s, background .15s;
}
.lf-input-wrap:focus-within {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(201,0,0,.10);
}
.lf-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: #6b7785;
  margin-right: 8px;
}
.lf-input-wrap:focus-within .lf-icon { fill: var(--red); }
.lf-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.lf-input-wrap input::placeholder { color: #9aa3ad; }

/* Şifre göster/gizle */
.lf-eye {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #6b7785;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.lf-eye:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.lf-eye svg { width: 18px; height: 18px; fill: currentColor; }
.lf-eye-hide { display: none; }
.lf-input-wrap.show-password .lf-eye-show { display: none; }
.lf-input-wrap.show-password .lf-eye-hide { display: block; }

/* Beni hatırla */
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

/* Submit */
.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #c90000 0%, #a80000 100%);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(201,0,0,.30);
}
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,0,0,.40); }
.login-submit:active { transform: translateY(0); }
.login-submit svg { width: 18px; height: 18px; fill: #fff; transition: transform .2s; }
.login-submit:hover svg { transform: translateX(3px); }

/* Footer "Aramıza Katıl" butonu */
.login-foot {
  padding: 0 24px 24px;
  text-align: center;
}
.login-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(31,42,56,.25);
}
.login-join:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(201,0,0,.35);
}
.login-join svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: #fff;
}
.login-join span {
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ===== Toast bildirimleri ===== */
.rx-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  min-width: 240px;
  max-width: 90vw;
  padding: 14px 22px;
  border-radius: 12px;
  background: #1f2a38;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 300;
  pointer-events: none;
}
.rx-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.rx-toast-success { background: linear-gradient(135deg, #2e9b3e 0%, #1f7c2c 100%); }
.rx-toast-error   { background: linear-gradient(135deg, #c90000 0%, #8c0000 100%); }
