/* Admin giriş — modern split layout */

.login-v2 {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font, "Source Sans 3", system-ui, sans-serif);
  color: var(--text, #1a1a1a);
  background: #f6f5f2;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
  min-height: 100vh;
}

/* —— Brand panel —— */
.login-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(154, 123, 79, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(155deg, #141414 0%, #1f1c18 42%, #2a241c 100%);
  color: #fff;
  overflow: hidden;
}

.login-brand-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
}

.login-brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  margin-bottom: 2rem;
  filter: brightness(1.15);
}

.login-brand-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.login-brand-lead {
  margin: 0 0 2rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.login-brand-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.login-brand-features svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #c9a86c;
}

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.login-brand-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fcf97;
  box-shadow: 0 0 8px rgba(111, 207, 151, 0.6);
}

.login-field--captcha {
  margin-bottom: 1.15rem;
}

.login-captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.login-captcha-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
}

.login-captcha-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.login-captcha-code {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 46px;
  padding: 0 0.65rem;
  border: 1px solid #e0ddd6;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f9f7f3 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.login-captcha-digit {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e8e2d8;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #3d3224;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.login-captcha-input {
  flex: 0 0 108px;
  width: 108px;
  height: 46px;
  padding: 0 0.75rem;
  border: 1px solid #e0ddd6;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
  background: #fdfcfa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-captcha-input::placeholder {
  color: #aaa;
  font-weight: 500;
  letter-spacing: 0;
}

.login-captcha-input:hover {
  border-color: #cfc9be;
}

.login-captcha-input:focus {
  border-color: #9a7b4f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.18);
}

.login-captcha-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.35;
}

.login-captcha-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0;
  border: none;
  background: transparent;
  color: #8b6f45;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.login-captcha-refresh:hover:not(:disabled) {
  color: #5c4a30;
}

.login-captcha-refresh:disabled {
  opacity: 0.5;
  cursor: wait;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Form panel —— */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #faf9f7;
}

.login-form-wrap {
  width: 100%;
  max-width: 420px;
}

.login-form-header {
  margin-bottom: 1.75rem;
}

.login-form-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.login-form-header p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
}

.login-form-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.06);
}

.login-field {
  margin-bottom: 1.15rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 0.85rem;
  color: #999;
  pointer-events: none;
  display: flex;
}

.login-input-wrap input {
  width: 100%;
  padding: 0.78rem 0.9rem 0.78rem 2.65rem;
  border: 1px solid #e0ddd6;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fdfcfa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input-wrap input:hover {
  border-color: #cfc9be;
}

.login-input-wrap input:focus {
  outline: none;
  border-color: #9a7b4f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.18);
}

.login-input-wrap--password input {
  padding-right: 2.75rem;
}

.login-toggle-pwd {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #888;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.login-toggle-pwd:hover {
  color: #555;
  background: rgba(0, 0, 0, 0.05);
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #b71c1c;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 10px;
}

.login-alert.hidden {
  display: none;
}

.login-alert svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.login-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #a88455 0%, #8b6f45 100%);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(139, 111, 69, 0.35);
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 111, 69, 0.4);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.login-submit-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}

.login-submit-spinner.hidden {
  display: none;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-form-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.login-dev-hint {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #777;
  background: #f3f1ec;
  border-radius: 8px;
  border: 1px dashed #ddd6c8;
}

.login-dev-hint code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  background: rgba(154, 123, 79, 0.12);
  border-radius: 4px;
  color: #6b5434;
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8b6f45;
  text-decoration: none;
  transition: color 0.15s;
}

.login-back:hover {
  color: #5c4a30;
}

.login-mobile-logo {
  display: none;
  height: 36px;
  width: auto;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 2rem 1.5rem 2.25rem;
    min-height: auto;
  }

  .login-brand-inner {
    max-width: none;
  }

  .login-brand-features,
  .login-brand-badge {
    display: none;
  }

  .login-brand-title {
    font-size: 1.35rem;
  }

  .login-brand-lead {
    margin-bottom: 0;
    font-size: 0.92rem;
  }

  .login-mobile-logo {
    display: block;
  }

  .login-main {
    padding-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .login-captcha-row {
    flex-direction: column;
    align-items: stretch;
  }

  .login-captcha-input {
    flex: 1 1 auto;
    width: 100%;
  }

  .login-form-card {
    padding: 1.35rem 1.15rem 1.15rem;
    border-radius: 14px;
  }

  .login-form-header h2 {
    font-size: 1.4rem;
  }
}
