:root {
  --primary: #5c8df6;
  --primary-dark: #3a6fe2;
  --bg: #f4f7fb;
  --text: #2e3a59;
  --white: #fff;
}

/* === GENEL === */
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  height: 100vh;
  display: flex;
}

.login-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* === SOL TARAF === */
.login-left {
  flex: 1;
  background: url('../img/login-illustration.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.login-left .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 48, 126, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.login-left .brand img {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.login-left .brand h1 {
  font-size: 34px;
  margin: 0;
  font-weight: 600;
}
.login-left .brand p {
  margin-top: 8px;
  font-size: 16px;
}

/* === SAĞ TARAF === */
.login-right {
  flex: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.form-box {
  width: 100%;
  max-width: 380px; /* önce 400'dü */
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 36px 40px; /* biraz sıkılaştırıldı */
  animation: fadeIn 0.4s ease;
}

.form-header {
  text-align: center;
  margin-bottom: 22px;
}
.form-header img {
  width: 65px;
  height: auto;
  margin-bottom: 10px;
}
.form-header h2 {
  color: var(--text);
  margin: 0;
  font-size: 20px; /* küçültüldü */
}
.form-header .subtitle {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group input {
  width: -webkit-fill-available;
  padding: 9px 12px; /* daha ince hale getirildi */
  border: 1px solid #d3d9e8;
  border-radius: 6px; /* 8'den küçültüldü */
  font-size: 14px;
  transition: all 0.2s;
  color: var(--text);
}
.form-group input::placeholder {
  color: #999;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(92,141,246,0.15); /* glow azaltıldı */
  outline: none;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 15px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.primary-btn:hover {
  background: var(--primary-dark);
}

.alert {
  background: #ffebeb;
  color: #d00;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-text {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  color: #999;
}

/* === ANİMASYON === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .login-left {
    display: none;
  }
  .login-right {
    flex: 1;
    padding: 20px;
  }
  .form-box {
    box-shadow: none;
  }
}
