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

:root {
  --black: #0f0f0f;
  --accent: #f5a623;
  --accent-dim: rgba(245,166,35,0.12);
  --accent-glow: rgba(245,166,35,0.3);
  --text: #1a1a1a;
  --text-2: #555555;
  --text-3: #999999;
  --white: #ffffff;
  --bg: #f5f5f0;
  --bg-2: #ffffff;
  --bg-3: #eeebe5;
  --border: #e0ddd8;
  --border-light: #ccc9c2;
  --danger: #dc2626;
  --danger-bg: rgba(220,38,38,0.08);
}

html, body {
  height: 100%;
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* BACKGROUND */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.015) 2px,
    rgba(0,0,0,0.015) 4px
  );
  pointer-events: none;
}

/* CONTAINER */
.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

/* BRAND PANEL */
.brand-panel {
  width: 420px;
  background: var(--black);
  border-right: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.brand-panel::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,166,35,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo { margin-bottom: 28px; }

.logo-mark {
  width: 64px; height: 64px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
}




.logo-mark span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 32px;
  color: var(--black); line-height: 1;
}

.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 52px; letter-spacing: 0.08em;
  color: var(--white); line-height: 1; margin-bottom: 6px;
}

.brand-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 32px;
}

.brand-divider { width: 40px; height: 2px; background: var(--accent); margin-bottom: 24px; }

.brand-desc { font-size: 14px; color: #aaa; line-height: 1.7; margin-bottom: 40px; }

.status-bar { display: flex; align-items: center; gap: 8px; }

.status-dot {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.status-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--accent); letter-spacing: 0.15em;
}

/* FORM PANEL */
.form-panel {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 70px;
  background: var(--bg-2);
  max-width: 560px;
  border-left: none;
}

.form-header { margin-bottom: 40px; }

.form-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 8px;
}

.form-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 38px;
  color: var(--black); letter-spacing: 0.02em;
}

/* ALERT */
.alert-error {
  display: flex; align-items: center; gap: 10px;
  background: var(--danger-bg);
  border: 1px solid rgba(220,38,38,0.25);
  border-left: 3px solid var(--danger);
  padding: 12px 16px; margin-bottom: 24px;
  font-size: 14px; color: var(--danger);
}
.alert-icon { font-size: 16px; }

/* FORM */
.field-group { margin-bottom: 24px; }

.field-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--text-3); margin-bottom: 8px;
}

.field-wrapper { position: relative; }

.field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-3); pointer-events: none;
}

.field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 15px;
  padding: 14px 16px 14px 44px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input::placeholder { color: var(--text-3); }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* BUTTON */
.btn-login {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--black); color: var(--accent);
  border: 2px solid var(--accent);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 0.12em;
  padding: 16px 24px; cursor: pointer; margin-top: 8px;
  transition: all 0.2s;
  clip-path: polygon(0 0, 97% 0, 100% 8%, 100% 100%, 3% 100%, 0 92%);
}
.btn-login svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-login:hover {
  background: var(--accent); color: var(--black);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-login:hover svg { transform: translateX(3px); }

/* FOOTER */
.form-footer {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-line { display: flex; align-items: center; gap: 10px; }
.mono-text { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; }
.footer-sep { color: var(--border-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .login-container { flex-direction: column; overflow-y: auto; }
  html, body { overflow: auto; }
  .brand-panel { width: 100%; padding: 40px 32px; border-right: none; border-bottom: 3px solid var(--accent); }
  .brand-panel::before, .brand-panel::after { display: none; }
  .form-panel { padding: 40px 32px; max-width: 100%; }
}
