/* Login - Clean Professional UI (based on signup) */
:root {
  --lg-blue: #1165EF;
  --lg-blue-hover: #0F59D6;
  --lg-bg: #F8F9FA;
  --lg-card: #FFFFFF;
  --lg-text: #1a1a1a;
  --lg-muted: #6B7280;
  --lg-border: #E5E7EB;
  --lg-input-bg: #FAFAFA;
  --lg-error: #DC2626;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #000;
}

.lg-container { display: flex; height: 100vh; overflow: hidden; }
.lg-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--lg-bg);
  padding: 40px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 32px;
}
.lg-image-section { flex: 1; position: relative; overflow: hidden; height: 100%; }
.lg-image-section img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.lg-card {
  width: 100%;
  max-width: 456px;
  background: var(--lg-card);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 40px 32px;
  position: relative;
}

.lg-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.lg-brand .brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.lg-title { font-size: 32px; font-weight: 700; color: var(--lg-text); margin: 0 0 28px; letter-spacing: -0.8px; line-height: 1.2; }

.lg-group { margin-bottom: 18px; }
.lg-label { display: block; font-size: 13px; font-weight: 500; color: var(--lg-text); margin-bottom: 6px; }
.lg-input { width: 100%; padding: 11px 14px; font-size: 15px; border: 1.5px solid var(--lg-border); border-radius: 8px; background: var(--lg-input-bg); transition: all .2s ease; color: var(--lg-text); }
.lg-input:focus { outline: none; border-color: var(--lg-blue); background: #fff; box-shadow: 0 0 0 3px rgba(17,101,239,.1); }
.lg-input::placeholder { color: #9CA3AF; }
.lg-input:disabled { background: #F3F4F6; cursor: not-allowed; }

.lg-options { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 8px; }
.lg-checkbox { display: flex; align-items: center; gap: 8px; }
.lg-checkbox input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--lg-blue); }
.lg-checkbox label { font-size: 14px; color: var(--lg-muted); cursor: pointer; }
.lg-link { font-size: 14px; color: var(--lg-blue); font-weight: 600; text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

/* Alert for general errors - clean and separated */
.lg-alert {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: var(--lg-error);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}
.lg-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.lg-alert-message {
  flex: 1;
  font-weight: 500;
}

/* Field errors - minimal inline */
.lg-error {
  color: var(--lg-error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
  padding: 4px 0;
}
.lg-error ul { margin: 0; padding: 0; list-style: none; }
.lg-error li { line-height: 1.5; font-weight: 500; }

.lg-btn { width: 100%; padding: 13px 24px; font-size: 15px; font-weight: 600; color: #fff; background: var(--lg-blue); border: 0; border-radius: 8px; cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s ease; margin-top: 8px; position: relative; }
.lg-btn:hover:not(:disabled) { background: var(--lg-blue-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(17,101,239,.35); }
.lg-btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 8px rgba(17,101,239,.25); }
.lg-btn:disabled { background: #D1D5DB; cursor: not-allowed; box-shadow: none; opacity: 0.7; }

.lg-btn-label { transition: opacity .2s ease; }
.lg-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.6);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  animation: lg-spin .7s linear infinite;
  margin-left: 8px;
}

.lg-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--lg-muted); }
.lg-footer a { color: var(--lg-blue); font-weight: 600; text-decoration: none; }
.lg-footer a:hover { text-decoration: underline; }

/* Spinner animation */
@keyframes lg-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .lg-container { flex-direction: column; }
  .lg-image-section { display: none; }
  .lg-form-section { min-height: 100vh; }
}
