/*
|------------------------------------------------------------
| InfraTrack Admin Login - HESK Benzeri Stil
|------------------------------------------------------------
*/

:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6b7280;
  --line: #d4d4d8;
  --soft: #f3f4f6;
  --panel: #f7f7f8;
  --card: #ffffff;
  --shadow-sm: 0 8px 24px rgba(11, 11, 11, 0.06);
  --shadow-md: 0 10px 28px rgba(11, 11, 11, 0.1);
  --focus: 0 0 0 4px rgba(11, 11, 11, 0.12);
  --radius-lg: 16px;
  --radius-md: 14px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.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;
}

.login-page {
  min-height: 100vh;
}

.login-layout {
  display: flex;
  min-height: 100vh;
}

/* === Left Illustration Side (%70) === */
.illustration-side {
  width: 70%;
  background: #ffffff;
  border-right: 1px solid #ededf0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.illustration-box {
  width: min(880px, 100%);
}

.illustration-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Right Login Side (%30) === */
.login-side {
  width: 30%;
  min-width: 360px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-shell {
  width: min(460px, 100%);
}

.brand {
  text-align: center;
  margin-bottom: 16px;
}

.brand img {
  width: clamp(120px, 40%, 156px);
  margin: 0 auto 10px;
  display: block;
}

.brand h1 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 640;
  letter-spacing: 0.1px;
}

.brand p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.alert {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.89rem;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #222;
  font-weight: 560;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 44px;
  border: 1px solid #d6d6da;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:hover {
  border-color: #bfc1c7;
}

.input:focus-visible {
  outline: none;
  border-color: #111214;
  box-shadow: var(--focus);
}

.input-password {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.toggle-password:hover {
  background: var(--soft);
  border-color: #e4e4e7;
  color: #111214;
}

.toggle-password:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: #111214;
}

.toggle-password svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.eye-off {
  display: none;
}

.toggle-password[data-visible="true"] .eye-on {
  display: none;
}

.toggle-password[data-visible="true"] .eye-off {
  display: block;
}

.remember-options {
  border: 1px solid #e7e7ea;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfbfc;
  margin: 2px 0 14px;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: #2c2c2c;
  padding: 5px 0;
  cursor: pointer;
}

.remember-option input[type="radio"] {
  margin: 0;
  accent-color: #0b0b0b;
}

.remember-option input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 50%;
}

.submit-btn {
  width: 100%;
  height: 46px;
  border: 1px solid #0b0b0b;
  border-radius: 12px;
  background: #0b0b0b;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.submit-btn:hover {
  background: #181818;
  box-shadow: 0 8px 18px rgba(11, 11, 11, 0.2);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(11, 11, 11, 0.14);
}

.submit-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 8px 18px rgba(11, 11, 11, 0.2);
}

.forgot-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-link:hover {
  color: #111214;
}

.forgot-link:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: var(--focus);
}

.footer-note {
  margin-top: 14px;
  text-align: center;
  color: #6b7280;
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 1080px) {
  .illustration-side {
    width: 60%;
  }

  .login-side {
    width: 40%;
  }
}

@media (max-width: 860px) {
  .login-layout {
    flex-direction: column;
  }

  .login-side {
    width: 100%;
    min-width: 0;
    order: 1;
    padding: 30px 16px 10px;
  }

  .illustration-side {
    width: 100%;
    order: 2;
    min-height: 230px;
    border-right: 0;
    border-top: 1px solid #ededf0;
    padding: 16px;
  }

  .illustration-box {
    width: min(620px, 100%);
  }
}

@media (max-width: 520px) {
  .login-card {
    padding: 16px;
  }

  .brand h1 {
    font-size: 1.1rem;
  }

  .illustration-side {
    display: none;
  }
}
