/* LinAlg.id — auth.css (login & register pages) */

.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Branding panel (kiri, desktop only) ─── */
.auth-brand {
  flex: 0 0 44%;
  background: var(--color-primary);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.05) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Dot-grid pattern */
.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.auth-brand-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 48px;
  position: relative;
}
.auth-brand-logo i { margin-right: 8px; }

.auth-brand h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
}

.auth-brand p {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 40px;
  line-height: 1.6;
  position: relative;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.auth-feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.auth-feature-text span {
  font-size: 12.5px;
  opacity: .8;
  line-height: 1.5;
}

/* ── Form panel (kanan) ─── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--color-bg);
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

.auth-box-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-box-header .auth-mobile-logo {
  display: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.auth-box-header .auth-mobile-logo i { margin-right: 6px; }

.auth-box-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-box-header p {
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.auth-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
}

.auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.auth-footer-link a { font-weight: 500; }

/* ── Password strength ─── */
.password-strength {
  margin-top: 8px;
}
.strength-bar-track {
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}
.strength-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width .3s ease, background .3s ease;
}
.strength-text { font-size: 11px; color: var(--color-text-muted); }

/* ── Username availability ─── */
.username-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin-top: 4px;
  height: 16px;
}
.username-status.available { color: var(--color-success); }
.username-status.taken     { color: var(--color-danger); }
.username-status.checking  { color: var(--color-text-muted); }

/* ── Responsive ─── */
@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form-panel { background: var(--color-surface); padding: 24px 16px; }
  .auth-box-header .auth-mobile-logo { display: block; }
  .auth-form-card { border: none; padding: 0; box-shadow: none; }
  .auth-box { max-width: 100%; }
}
