:root {
  --nav-bg: #111827;          /* navigation rengi (sidebar/topbar ile aynı) */
  --button-bg: #1f2937;       /* nav renginden hafif açık: buton ve alt alan rengi */
  --button-bg-hover: #111827;
  --text-main: #e5e7eb;
  --input-bg: #111827;
  --input-border: #374151;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--button-bg); /* Alt kısım: buton rengi ile aynı */
  color: var(--text-main);
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-hero {
  background: var(--nav-bg);  /* Logo alanı: navigation rengi */
  padding:96px 16px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.login-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid var(--nav-bg);
}

.login-logo-wrapper {
  max-width: 260px;
  width: 100%;
}

.login-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
}

.login-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 16px 40px;
}

.login-card {
  width: 100%;
  max-width: 340px;
  padding-top: 24px;
  margin-top: 80px;
}

.login-form {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.login-field {
  position: relative;
  margin-bottom: 16px;
}

.login-field-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
}

.login-field-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.login-input {
  width: 100%;
  height: 44px;
  padding: 0 18px 0 56px;
  border-radius: 4px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: #f9fafb;
  font-size: 14px;
  line-height: 44px;
  font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-field::before {
  content: "";
  position: absolute;
  left: 48px; /* ikon alanı + küçük boşluk */
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(107, 114, 128, 0.45);
  pointer-events: none;
}

.login-input::placeholder {
  color: #6b7280;
}

.login-input:focus {
  border-color: var(--button-bg);
  box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.85);
  background: #020617;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  -webkit-text-fill-color: #f9fafb !important;
  caret-color: #f9fafb;
}

.login-button {
  margin-top: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: var(--nav-bg);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.login-button:hover {
  background: var(--button-bg-hover);
  border-color: rgba(15, 23, 42, 1);
  transform: translateY(0);
}

.login-button:active {
  transform: translateY(1px);
}

.login-button-icon img {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(1);
  opacity: 0.9;
}

@media (max-width: 480px) {
  .login-hero {
    padding: 48px 16px 80px;
  }

  .login-card {
    max-width: 320px;
    margin-top: 48px;
  }
}
