/* =====================================================================
   Micro Lite — Authentication (login / register) Blue Theme
   ===================================================================== */

:root {
  --primary-color: #2563eb;   /* blue-600 */
  --primary-dark:  #1d4ed8;   /* blue-700 */
  --primary-soft:  #eff4ff;
}

/* =====================================================================
   World-class split-screen login (.auth-split)
   ===================================================================== */
.auth-main { padding: 0; }

.auth-split {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ---------------------------- Brand panel ---------------------------- */
.auth-brand {
  flex: 1 1 52%;
  position: relative;
  overflow: hidden;
  display: flex;
  color: #eaf1ff;
  background: linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 45%, #2563eb 100%);
  isolation: isolate;
}
.auth-brand::after {            /* subtle dotted texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  z-index: -1;
}
.auth-brand__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 54px 60px;
}
.auth-brand__content { max-width: 460px; margin: auto 0; }
.auth-brand__headline {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 0 16px;
  color: #fff;
}
.auth-brand__lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin: 0 0 36px;
}
.auth-brand__footer {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

/* Decorative orbs */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  z-index: -1;
}
.auth-orb--1 {
  width: 360px; height: 360px;
  top: -120px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(96,165,250,.55), transparent 70%);
}
.auth-orb--2 {
  width: 420px; height: 420px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.45), transparent 70%);
}

/* Feature list */
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.auth-features li { display: flex; align-items: flex-start; gap: 14px; }
.auth-feature__icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(4px);
}
.auth-feature__icon svg { width: 22px; height: 22px; }
.auth-features li div { display: flex; flex-direction: column; }
.auth-features li strong { color: #fff; font-weight: 600; font-size: .98rem; }
.auth-features li span { color: rgba(255,255,255,.72); font-size: .85rem; }

/* ----------------------------- Logo ---------------------------------- */
.auth-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff;
}
.auth-logo span { color: #93c5fd; }
.auth-logo--mobile { display: none; color: #0f2147; margin-bottom: 28px; }
.auth-logo--mobile span { color: var(--primary-color); }

/* ---------------------------- Form panel ----------------------------- */
.auth-form-panel {
  flex: 1 1 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}
.auth-form { width: 100%; max-width: 400px; }
.auth-form .form-signin { text-align: left; width: 100%; }
.auth-form__head { margin-bottom: 28px; }
.auth-form__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0f2147;
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.auth-form__subtitle { color: #64748b; font-size: .95rem; margin: 0; }

/* Fields */
.field { margin-bottom: 18px; }
.field__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}
.field__control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #dce3ee;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field__control:focus-within {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.field__control.is-invalid { border-color: #ef4444; }
.field__control.is-invalid:focus-within { box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.field__icon {
  width: 20px; height: 20px;
  margin-left: 14px;
  color: #94a3b8;
  flex: 0 0 auto;
}
.field__control:focus-within .field__icon { color: var(--primary-color); }
.field__control input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 14px;
  font-size: .95rem;
  color: #0f2147;
  width: 100%;
}
.field__control input::placeholder { color: #aab4c5; }
.field__toggle {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.field__toggle:hover { color: var(--primary-color); }
.field__toggle svg { width: 20px; height: 20px; }
.field__error { display: block; color: #dc2626; font-size: .8rem; margin-top: 6px; }

/* Row: remember + forgot */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
}
.auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; user-select: none; }
.auth-check input {
  width: 17px; height: 17px;
  accent-color: var(--primary-color);
  cursor: pointer;
}
.auth-check span { font-size: .88rem; color: #475569; }
.auth-link { font-size: .88rem; font-weight: 600; color: var(--primary-color); text-decoration: none; }
.auth-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Primary button */
.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: .98rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37,99,235,.28);
  transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.auth-btn:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(37,99,235,.36); }
.auth-btn:hover svg { transform: translateX(3px); }
.auth-btn:active { transform: translateY(1px); }

.auth-alt { text-align: center; margin: 20px 0 0; font-size: .9rem; color: #64748b; }
.auth-alt a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* Alerts */
.auth-alert {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .88rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.auth-alert--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.auth-alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* ---------------------------- Responsive ----------------------------- */
@media (max-width: 991px) {
  .auth-brand { display: none; }
  .auth-form-panel { flex: 1 1 100%; padding: 32px 22px; }
  .auth-logo--mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-btn, .auth-btn svg { transition: none; }
}

body {
  background: #eef3fb;
  color: #1e293b;
  font-family: 'Inter', 'Poppins', sans-serif;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Decorative blurred blue blobs */
body::before {
  content: "";
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  position: fixed;
  top: -220px;
  left: -260px;
  height: 520px;
  width: 520px;
  border-radius: 50%;
  opacity: .18;
  filter: blur(8px);
}

body::after {
  content: "";
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  position: fixed;
  bottom: -320px;
  right: -320px;
  height: 520px;
  width: 520px;
  border-radius: 50%;
  opacity: .16;
  filter: blur(8px);
  z-index: -1;
}

@media (max-width: 768px) {
  body::before { top: -120px; left: -120px; height: 320px; width: 320px; }
  body::after  { bottom: -120px; right: -120px; height: 320px; width: 320px; }
}

/* ------------------------------- Brand ------------------------------- */
.logo {
  max-width: 120px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 4px;
}

.brand-name {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #0f2147;
  margin: 8px 0 0;
}
.brand-name span { color: var(--primary-color); }

.brand-subtitle {
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  margin: 2px 0 18px;
}

/* ------------------------------- Card -------------------------------- */
.card-signin {
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 33, 71, .12);
  overflow: hidden;
}

.card-signin::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), #60a5fa);
}

.card-signin .card-body {
  padding: 1.75rem 2.25rem 2rem;
}

.login-form-head {
  text-align: center;
  background: #ffffff;
  padding: 30px 15px;
  border-bottom: 1px solid #e8e8e8;
}

.login-form-head h4 {
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 600;
  color: #0f2147;
  margin: 0;
}

/* ------------------------------- Forms ------------------------------- */
.form-signin,
.form-signup {
  font-family: 'Inter', 'Poppins', sans-serif;
  width: 100%;
}

.form-signin { text-align: center; }

.form-signin .form-control,
.form-signup .form-control {
  padding: 12px 18px;
  height: auto;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-signin .form-control { text-align: center; }

.form-signin .form-control:focus,
.form-signup .form-control:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}

select.form-control {
  padding: 12px 18px;
  height: 51px !important;
}

.form-signin .btn,
.form-signup .btn {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04rem;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.2s;
}

/* Checkbox */
.custom-control-label {
  margin-bottom: 0;
  margin-top: 1px;
  user-select: none;
}
.custom-control { display: inline-block; }
.custom-control-label::before { background: #ccc; border-radius: 50% !important; }
.custom-control-input:checked ~ .custom-control-label::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Links */
.btn-register {
  text-align: center;
  display: block;
  color: var(--primary-color);
  font-size: 15px !important;
  font-weight: 600;
}
.btn-register:hover { color: var(--primary-dark); }

.btn-link { color: var(--primary-color); }
.btn-link:hover { color: var(--primary-dark); }

/* ------------------------------ Buttons ------------------------------ */
.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ------------------------------ Alerts ------------------------------- */
.alert-success {
  color: #14532d;
  background-color: #dcfce7;
  border-color: #86efac;
  border-radius: 10px;
}
.alert-danger {
  border-radius: 10px;
}
