@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg: #0a0c12;
  --bg-2: #121622;
  --surface: rgba(22, 26, 40, 0.82);
  --surface-solid: #161a28;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(240, 165, 0, 0.55);
  --accent: #f0a500;
  --accent-soft: rgba(240, 165, 0, 0.14);
  --accent-glow: rgba(240, 165, 0, 0.35);
  --text: #eef0f6;
  --muted: #8b93ad;
  --danger: #ff6b6b;
  --success: #3ddc97;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(240, 165, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(52, 152, 219, 0.12), transparent 50%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* Arka plan efektleri */
.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.5;
}
.ambient-one {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -120px;
  left: -80px;
  background: #f0a500;
}
.ambient-two {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  right: -60px;
  bottom: -100px;
  background: #3498db;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  min-height: min(640px, calc(100dvh - 32px));
  margin: 16px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

/* Sol panel — marka */
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 56px);
  background:
    linear-gradient(145deg, rgba(240, 165, 0, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23f0a500' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -60px;
  bottom: -60px;
  border-radius: 50%;
  border: 1px solid rgba(240, 165, 0, 0.15);
  pointer-events: none;
}

.wood-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #e05c2a 100%);
  font-size: 26px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.wood-mark span { line-height: 1; }

.eyebrow {
  margin: 28px 0 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #ffc857);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy {
  margin: 18px 0 0;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.brand-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 40px;
}

.brand-line span {
  height: 1px;
  flex: 1;
  max-width: 60px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.brand-line i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sağ panel — form */
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
  background: rgba(10, 12, 18, 0.35);
}

.panel-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.2);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.secure-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(61, 220, 151, 0.6);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro {
  margin: 8px 0 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.input-wrap {
  position: relative;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  stroke: var(--muted);
  stroke-width: 1.8;
  fill: none;
  pointer-events: none;
  transition: stroke 0.2s;
}

.input-wrap:focus-within svg {
  stroke: var(--accent);
}

.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 72px 0 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 500 0.95rem "DM Sans", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap input::placeholder {
  color: rgba(139, 147, 173, 0.65);
}

.input-wrap input:focus {
  border-color: var(--border-focus);
  background: rgba(240, 165, 0, 0.04);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.show-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font: 600 0.75rem "DM Sans", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.show-password:hover {
  background: var(--accent-soft);
}

.error {
  margin: -4px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.4;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 15px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, #e8920a 100%);
  color: #111;
  font: 700 0.95rem "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.submit b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.2s;
}

.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
  filter: brightness(1.05);
}

.submit:hover:not(:disabled) b {
  transform: translateX(3px);
}

.submit:active:not(:disabled) {
  transform: translateY(0);
}

.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 36px;
}

.signature-line {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.signature p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.signature strong {
  color: var(--accent);
  font-weight: 600;
}

.signature small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: rgba(139, 147, 173, 0.7);
}

/* Tablet */
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    min-height: auto;
    margin: 12px auto;
    width: min(480px, calc(100% - 24px));
  }

  .brand-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 28px 28px;
    text-align: center;
    align-items: center;
  }

  .brand-panel::after { display: none; }

  h1 { font-size: 1.85rem; }

  .brand-copy {
    font-size: 0.88rem;
    max-width: 100%;
  }

  .brand-features {
    display: none;
  }

  .brand-line {
    display: none;
  }

  .login-panel {
    padding: 28px 24px 24px;
  }

  .signature {
    padding-top: 28px;
  }
}

/* Mobil */
@media (max-width: 480px) {
  body {
    background: var(--bg);
  }

  .ambient { opacity: 0.35; }

  .shell {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .brand-panel {
    padding: 28px 20px 24px;
  }

  .wood-mark {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 12px;
  }

  .eyebrow {
    margin: 20px 0 8px;
    font-size: 0.65rem;
  }

  h1 { font-size: 1.65rem; }

  .brand-copy { display: none; }

  .login-panel {
    flex: 1;
    padding: 24px 20px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .panel-top {
    margin-bottom: 20px;
    font-size: 0.68rem;
  }

  h2 { font-size: 1.4rem; }

  .intro {
    margin-bottom: 22px;
    font-size: 0.88rem;
  }

  .input-wrap input {
    height: 48px;
    font-size: 16px; /* iOS zoom önleme */
  }

  .submit {
    padding: 14px 18px;
    min-height: 50px;
  }
}
