/* ══════════════════════════════════════════════
   APEX — Login · Clean Corporate Design
   assets/css/login.css
══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:         #F1F4F8;
  --surface:    #FFFFFF;
  --primary:    #1C2D4A;
  --amber:      #D4880A;
  --amber-lt:   #FEF5E6;
  --text:       #1C2D4A;
  --text-soft:  #4D6080;
  --text-light: #8FA0BC;
  --border:     #E3E8F0;
  --danger:     #991B1B;
  --danger-lt:  #FEE2E2;
  --success:    #166534;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Outer wrapper ── */
.login-bg {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ── Left panel ── */
.login-left {
  flex: 1;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.login-left-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.ll-inner {
  position: relative; z-index: 1;
  padding: 48px 52px;
  max-width: 460px;
}

.ll-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 44px;
}

.ll-emblem {
  width: 46px; height: 46px;
  background: var(--amber);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.ll-brand {
  font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2;
}
.ll-sub {
  font-size: 11px; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: 2px; margin-top: 2px;
}

.ll-tagline {
  font-size: 32px; font-weight: 700; color: #fff;
  line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.5px;
}
.ll-tagline span { color: var(--amber); }

.ll-desc {
  font-size: 14px; color: rgba(255,255,255,.55);
  line-height: 1.7; margin-bottom: 32px;
}

.ll-features { display: flex; flex-direction: column; gap: 10px; }
.ll-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,.65);
}
.lf-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%; flex-shrink: 0;
}

/* ── Right panel ── */
.login-right {
  width: 440px;
  flex-shrink: 0;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  box-shadow: -2px 0 30px rgba(0,0,0,.08);
}

.login-card {
  width: 100%;
  max-width: 360px;
}

.lc-head { margin-bottom: 28px; }
.lc-title {
  font-size: 26px; font-weight: 700;
  color: var(--text); letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.lc-sub { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }

.lc-error {
  background: var(--danger-lt);
  border: 1px solid #FECACA;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px; color: var(--danger);
  display: flex; align-items: center; gap: 8px;
}
.le-icon { font-size: 15px; flex-shrink: 0; }

.lc-form { display: flex; flex-direction: column; gap: 16px; }

.lf-group { display: flex; flex-direction: column; gap: 5px; }
.lf-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-soft);
}

.lf-input-wrap {
  position: relative;
  display: flex; align-items: center;
}

.lf-icon-left {
  position: absolute; left: 12px;
  font-size: 14px; pointer-events: none;
  opacity: .5;
}

.lf-input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px; color: var(--text);
  background: #FAFBFC;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.lf-input:focus {
  border-color: var(--amber);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212,136,10,.12);
}

.lf-eye {
  position: absolute; right: 10px;
  background: none; border: none;
  cursor: pointer; font-size: 14px;
  color: var(--text-light);
  padding: 4px;
  transition: color .15s;
}
.lf-eye:hover { color: var(--text); }

.lf-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--amber);
  color: #fff;
  border: none; border-radius: 8px;
  font-family: var(--font);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: background .16s, transform .1s, box-shadow .16s;
  box-shadow: 0 3px 12px rgba(212,136,10,.35);
  margin-top: 4px;
}
.lf-btn:hover { background: var(--amber-dk, #B87208); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(212,136,10,.4); }
.lf-btn:active { transform: none; }
.lf-btn-arrow { font-size: 18px; transition: transform .15s; }
.lf-btn:hover .lf-btn-arrow { transform: translateX(3px); }

.lc-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 12px; color: var(--text-light);
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .login-left { display: none; }
  .login-right { width: 100%; padding: 32px 24px; }
}
