:root {
  --baru-dark-blue: #0047ab;
  --baru-light-blue: #86cefa;
  --baru-dark-grey: #333333;
  --baru-gold: #917b4c;
  --baru-silver: #a6a9aa;
  --baru-yellow: #ffbf0b;
  --baru-red: #da291c;
  --baru-orange: #fc4c02;
  --baru-blue: #0071ce;
  --baru-blue-grey: #7c878e;
  --baru-cool-grey: #a8a8a8;
  --baru-light-grey: #d0d0d0;
  --bg-body: #f0f0f0;
  --bg-card: #ffffff;
  --border-color: #e4e9f2;
  --text-primary: var(--baru-dark-grey);
  --text-secondary: var(--baru-blue-grey);
  --accent-blue: var(--baru-dark-blue);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  background: var(--accent-blue);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../img/baru_logo_v3.png');
  background-repeat: repeat;
  background-size: 150px auto;
  background-position: 0 0;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.login-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(166, 169, 170, 0.35);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
  text-align: center;
}

.login-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.brand__logo {
  max-width: 100px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(15%) sepia(76%) saturate(4094%)
    hue-rotate(208deg) brightness(92%) contrast(108%);
}

.brand__divider {
  width: 36px;
  height: 1px;
  background: rgba(0, 71, 171, 0.4);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.brand__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
}

.brand__subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
}

.brand__tagline {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 2px;
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input {
  border-radius: 14px;
  border: 1px solid rgba(0, 71, 171, 0.16);
  padding: 14px 16px;
  font-size: 14px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  transition: border-color 0.2s ease, outline 0.2s ease;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(0, 71, 171, 0.4);
}

.form-input:focus {
  outline: 2px solid rgba(0, 71, 171, 0.24);
  outline-offset: 2px;
  border-color: rgba(0, 71, 171, 0.24);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-button {
  border-radius: 14px;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background: var(--accent-blue);
  color: #ffffff;
  width: 100%;
  letter-spacing: 0.02em;
}

.login-button:hover {
  background: #003d94;
  box-shadow: 0 10px 24px rgba(0, 71, 171, 0.2);
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.register-button {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(0, 71, 171, 0.2);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  background: transparent;
  color: var(--accent-blue);
  width: 100%;
  letter-spacing: 0.02em;
}

.register-button:hover,
.register-button:focus {
  text-decoration: none;
  background: rgba(0, 71, 171, 0.08);
  border-color: rgba(0, 71, 171, 0.3);
  transform: translateY(-1px);
}

.register-button:active {
  text-decoration: none;
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.login-footer__text {
  font-size: 13px;
  color: var(--text-secondary);
}

.login-footer__link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-footer__link:hover {
  color: #003d94;
  text-decoration: underline;
}

/* Validation */
.validation-summary {
  color: var(--baru-red);
  font-size: 14px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(218, 41, 28, 0.08);
  border-radius: 8px;
  list-style: none;
}

.validation-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Sağ üst köşe bildirim (kayıt başarılı) */
.auth-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 380px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 14px;
  border-left: 4px solid var(--accent-blue);
  box-shadow: var(--shadow), 0 4px 20px rgba(0, 71, 171, 0.15);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  animation: auth-toast-in 0.35s ease-out;
}

.auth-toast--success {
  border-left-color: #0f766e;
  box-shadow: var(--shadow), 0 4px 20px rgba(15, 118, 110, 0.12);
}

.auth-toast--success .auth-toast__icon {
  color: #0f766e;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.auth-toast--error {
  border-left-color: #b45309;
  box-shadow: var(--shadow), 0 4px 20px rgba(180, 83, 9, 0.15);
}

.auth-toast--error .auth-toast__icon {
  color: #b45309;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-toast__message {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

.auth-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: rgba(0, 71, 171, 0.08);
  color: var(--accent-blue);
  font-size: 20px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-toast__close:hover {
  background: rgba(0, 71, 171, 0.15);
}

.auth-toast--hiding {
  animation: auth-toast-out 0.3s ease-in forwards;
}

@keyframes auth-toast-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes auth-toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

/* Karanlık mod – labsis-theme localStorage ile tüm sayfalarda uygulanır */
html[data-theme="dark"] body {
  background: #0f1419;
  color: #e6edf3;
}

html[data-theme="dark"] body::before {
  opacity: 0.06;
  filter: brightness(0) invert(1) opacity(0.5);
}

html[data-theme="dark"] .login-card {
  background: #1a2332;
  border-color: #2d3a4a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .brand__title,
html[data-theme="dark"] .brand__subtitle {
  color: #58a6ff;
}

html[data-theme="dark"] .brand__tagline {
  color: #8b9cb3;
}

html[data-theme="dark"] .login-header {
  border-color: #2d3a4a;
}

html[data-theme="dark"] .form-label {
  color: #e6edf3;
}

html[data-theme="dark"] .form-input {
  background: #0f1419;
  border-color: #2d3a4a;
  color: #e6edf3;
}

html[data-theme="dark"] .form-input::placeholder {
  color: #6e7b8a;
}

html[data-theme="dark"] .login-button {
  background: #1f6feb;
}

html[data-theme="dark"] .login-button:hover {
  background: #388bfd;
}

html[data-theme="dark"] .register-button {
  border-color: #2d3a4a;
  color: #58a6ff;
}

html[data-theme="dark"] .register-button:hover {
  background: rgba(88, 166, 255, 0.12);
  border-color: #58a6ff;
}

html[data-theme="dark"] .login-footer {
  border-color: #2d3a4a;
}

html[data-theme="dark"] .login-footer__link {
  color: #58a6ff;
}

html[data-theme="dark"] .auth-toast {
  background: #1a2332;
  border-color: #2d3a4a;
}

html[data-theme="dark"] .auth-toast--success {
  border-left-color: #3fb950;
}

html[data-theme="dark"] .auth-toast--success .auth-toast__message {
  color: #e6edf3;
}

.validation-error {
  display: block;
  color: var(--baru-red);
  font-size: 12px;
  margin-top: 4px;
}

.input-validation-error.form-input {
  border-color: var(--baru-red);
  box-shadow: 0 0 0 2px rgba(218, 41, 28, 0.15);
}

@media (max-width: 480px) {
  .login-card {
    padding: 36px 28px;
  }

  .brand__title {
    font-size: 12px;
  }

  .brand__subtitle {
    font-size: 10px;
  }
}

