/* =========================================================
   LAND PARTS — Auth Pages CSS
   Dark industrial design — Split-screen layout
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; min-height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: #080808;
  color: #f0f0f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #f5a623; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #e09415; }
::selection { background: rgba(245, 166, 35, 0.3); color: #fff; }

/* =========================================================
   SPLIT LAYOUT
   ========================================================= */
.auth-split { display: flex; min-height: 100vh; }

/* --- Brand Panel (left) --- */
.auth-split__brand {
  flex: 0 0 44%;
  background: #080808;
  background-image:
    radial-gradient(ellipse at 15% 85%, rgba(245,166,35,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(245,166,35,0.05) 0%, transparent 50%);
  border-right: 1px solid #1c1c1c;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 48px 48px 56px;
  position: relative; overflow: hidden;
}
/* subtle industrial dot grid */
.auth-split__brand::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
/* amber left accent bar */
.auth-split__brand::after {
  content: ''; position: absolute;
  left: 0; top: 15%; bottom: 15%; width: 3px;
  background: linear-gradient(to bottom, transparent, #f5a623 25%, #f5a623 75%, transparent);
  border-radius: 0 2px 2px 0;
}

.auth-brand { position: relative; z-index: 1; max-width: 340px; }

.auth-brand__logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px; font-weight: 700; color: #f0f0f0;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; margin-bottom: 8px;
}
.auth-brand__logo span { color: #f5a623; }

.auth-brand__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #f5a623;
  text-transform: uppercase; letter-spacing: 0.28em; margin-bottom: 28px;
}

.auth-brand__divider {
  width: 44px; height: 2px;
  background: linear-gradient(to right, #f5a623, transparent);
  margin-bottom: 28px;
}

.auth-brand__tagline { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 40px; }

.auth-brand__stats { display: flex; gap: 36px; margin-bottom: 48px; }

.auth-brand__stat span {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 700; color: #f5a623; line-height: 1; margin-bottom: 4px;
}
.auth-brand__stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #444; text-transform: uppercase; letter-spacing: 0.12em;
}

.auth-brand__icon { font-size: 96px; color: rgba(245,166,35,0.06); line-height: 1; }

/* --- Form Panel (right) --- */
.auth-split__form {
  flex: 1; background: #0d0d0d;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; min-height: 100vh; overflow-y: auto;
}

/* =========================================================
   ALERTS
   ========================================================= */
.auth-alert {
  width: 100%; max-width: 460px; border-radius: 6px; padding: 12px 16px;
  font-size: 13px; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; line-height: 1.5;
}
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert--success { background: rgba(34,197,94,0.08);  border: 1px solid rgba(34,197,94,0.22);  color: #4ade80; }
.auth-alert--error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.22);  color: #f87171; }
.auth-alert--info    { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.22); color: #60a5fa; }

/* =========================================================
   CARD
   ========================================================= */
.login-card {
  width: 100%; max-width: 440px;
  background: #141414; border: 1px solid #222; border-radius: 10px;
  padding: 36px 32px 28px; box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.login-card--wide { max-width: 580px; }

.login-card__header {
  text-align: center; margin-bottom: 28px;
  padding-bottom: 22px; border-bottom: 1px solid #1e1e1e;
}
.login-card__header .sidebar__logo-mark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px; font-weight: 700; color: #f0f0f0;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1;
}
.login-card__header .sidebar__logo-mark span { color: #f5a623; }
.login-card__header p { margin-top: 6px; font-size: 13px; color: #555; line-height: 1.4; }

.login-card .auth-alert { max-width: 100%; }

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: #666; margin-bottom: 8px;
}

.form-icon-wrap { position: relative; }
.form-icon-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #333; font-size: 13px; pointer-events: none; transition: color 0.15s ease;
}
.form-icon-wrap:focus-within i { color: #f5a623; }

.form-icon-wrap input {
  width: 100%; background: #0c0c0c; border: 1px solid #252525; color: #f0f0f0;
  padding: 13px 14px 13px 42px; border-radius: 6px; font-size: 14px;
  font-family: 'Inter', sans-serif; outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-icon-wrap input:focus { border-color: #f5a623; background: #100d07; }
.form-icon-wrap input::placeholder { color: #2e2e2e; }

/* =========================================================
   FORM OPTIONS
   ========================================================= */
.form-options {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; font-size: 12px;
}
.form-options label { display: flex; align-items: center; gap: 6px; color: #555; cursor: pointer; font-size: 12px; }
.form-options input[type="checkbox"] { width: 14px; height: 14px; accent-color: #f5a623; }
.form-options a { color: #555; font-size: 12px; }
.form-options a:hover { color: #f5a623; }

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */
.login-card__btn {
  display: block; width: 100%;
  background: #f5a623; color: #080808;
  font-weight: 700; font-size: 13px; padding: 14px 24px;
  border: none; border-radius: 6px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  font-family: 'Inter', sans-serif; text-align: center; margin-top: 4px;
  box-shadow: 0 2px 16px rgba(245,166,35,0.2);
}
.login-card__btn:hover { background: #e09415; box-shadow: 0 4px 24px rgba(245,166,35,0.35); transform: translateY(-1px); }
.login-card__btn:active { transform: translateY(0); box-shadow: none; }

/* =========================================================
   CARD FOOTER
   ========================================================= */
.login-card__footer { text-align: center; margin-top: 20px; font-size: 12px; color: #3a3a3a; }
.login-card__footer a { color: #666; }
.login-card__footer a:hover { color: #f5a623; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .auth-split__brand { display: none; }
  .auth-split__form { padding: 32px 20px; }
  .login-card { padding: 28px 24px 22px; }
  .login-card--wide { max-width: 480px; }
}
@media (max-width: 520px) {
  .auth-split__form { padding: 20px 12px; justify-content: flex-start; padding-top: 28px; }
  .login-card { border-radius: 8px; padding: 24px 18px 20px; }
  .login-card--wide { max-width: 100%; }
}

/* =========================================================
   LIGHT THEME
   ========================================================= */
html[data-theme="light"] body { background: #f0f2f5; color: #1a1a1a; }
html[data-theme="light"] a { color: #d97706; }
html[data-theme="light"] a:hover { color: #b45309; }
html[data-theme="light"] .auth-split__form { background: #f0f2f5; }
html[data-theme="light"] .login-card { background: #fff; border-color: #e5e7eb; box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
html[data-theme="light"] .login-card__header { border-bottom-color: #ebebeb; }
html[data-theme="light"] .login-card__header .sidebar__logo-mark { color: #111; }
html[data-theme="light"] .login-card__header p { color: #999; }
html[data-theme="light"] .form-label { color: #888; }
html[data-theme="light"] .form-icon-wrap input { background: #f9fafb; border-color: #d1d5db; color: #111; }
html[data-theme="light"] .form-icon-wrap input:focus { border-color: #d97706; background: #fffcf5; }
html[data-theme="light"] .form-icon-wrap input::placeholder { color: #c0c0c0; }
html[data-theme="light"] .form-icon-wrap i { color: #c0c0c0; }
html[data-theme="light"] .form-icon-wrap:focus-within i { color: #d97706; }
html[data-theme="light"] .form-options label { color: #777; }
html[data-theme="light"] .form-options a { color: #777; }
html[data-theme="light"] .form-options a:hover { color: #d97706; }
html[data-theme="light"] .login-card__btn { background: #d97706; color: #fff; box-shadow: 0 2px 14px rgba(217,119,6,0.25); }
html[data-theme="light"] .login-card__btn:hover { background: #b45309; box-shadow: 0 4px 20px rgba(217,119,6,0.4); }
html[data-theme="light"] .login-card__footer { color: #bbb; }
html[data-theme="light"] .login-card__footer a { color: #999; }
html[data-theme="light"] .login-card__footer a:hover { color: #d97706; }
html[data-theme="light"] .auth-alert--success { background: rgba(34,197,94,0.06); }
html[data-theme="light"] .auth-alert--error   { background: rgba(239,68,68,0.06); }
html[data-theme="light"] .auth-alert--info    { background: rgba(59,130,246,0.06); }
