﻿/* ==========================================================================
   JemeTechnologies â€” Reference Generator
   Design system
   ========================================================================== */

:root {
  --primary: #355F2A;
  --primary-dark: #25421d;
  --primary-light: #eaf5e6;
  --accent: #6EC557;
  --success: #6EC557;
  --success-light: #eaf8e5;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --bg: #f5f5ef;
  --surface: #ffffff;
  --text: #23261c;
  --text-muted: #6b6f5c;
  --border: #e3e1d3;
  --border-strong: #cfe6c5;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px -12px rgba(30, 41, 59, 0.18);
  --shadow-lg: 0 20px 45px -15px rgba(30, 41, 59, 0.25);
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  animation: page-fade-in .45s ease both;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, #6EC557, transparent 70%);
  animation: aura-float-1 17s ease-in-out infinite alternate;
}

body::after {
  bottom: -200px;
  right: -160px;
  background: radial-gradient(circle, #355F2A, transparent 70%);
  animation: aura-float-2 19s ease-in-out infinite alternate;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aura-float-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 70px) scale(1.08); }
}

@keyframes aura-float-2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-50px, -60px) scale(1.08); }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.4rem;
}

h2, h3 {
  margin-bottom: 15px;
}

p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

code {
  color: inherit;
}

/* ---- layout shell -------------------------------------------------- */

.page-container {
  flex: 1 0 auto;
  width: 100%;
}

/* ---- navbar ---------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: box-shadow .25s ease, background-color .25s ease;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 30px -14px rgba(30, 41, 59, 0.3);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-left: 15px;
}

/* ---- nav CTA + user menu ---------------------------------------------- */

.btn-nav-cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.user-menu-toggle:hover,
.user-menu-toggle[aria-expanded="true"] {
  background: var(--primary-light);
  border-color: var(--border-strong);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.user-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform .2s ease;
}

.user-menu-toggle[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.6rem !important;
  min-width: 210px;
  animation: dropdown-pop .18s ease both;
}

@keyframes dropdown-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-dropdown-menu form {
  margin: 0;
}

.user-dropdown-menu .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
}

.user-dropdown-menu .dropdown-item:hover,
.user-dropdown-menu .dropdown-item:focus {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.user-dropdown-menu .dropdown-item.text-danger:hover,
.user-dropdown-menu .dropdown-item.text-danger:focus {
  background: var(--danger-light);
  color: var(--danger) !important;
}

/* ---- buttons ----------------------------------------------------------- */

.btn {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: btn-ripple-anim .55s ease-out;
  pointer-events: none;
}

.btn-secondary .btn-ripple {
  background: rgba(53, 95, 42, 0.16);
}

@keyframes btn-ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 0.5rem;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: btn-spin .6s linear infinite;
}

.btn-secondary .btn-spinner {
  border-color: rgba(53, 95, 42, 0.25);
  border-top-color: var(--primary);
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn.is-loading,
button.is-loading {
  cursor: progress;
  pointer-events: none;
  opacity: 0.9;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 3px rgba(53, 95, 42, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(53, 95, 42, 0.7);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(53, 95, 42, 0.75);
}

.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: #f8f8f2;
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(110, 197, 87, 0.65);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-1px);
}

/* ---- forms --------------------------------------------------------- */

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.text-danger {
  font-size: 0.83rem;
}

/* ---- alerts ---------------------------------------------------------- */

.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.alert-danger {
  background: var(--danger-light);
  color: #991b1b;
}

.alert-success {
  background: var(--success-light);
  color: #3d5220;
}

/* ---- home page --------------------------------------------------------- */

.home-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 1rem;
}

.home-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  text-align: center;
  animation: card-enter .55s cubic-bezier(.16, 1, .3, 1) both;
}

.home-card::before,
.gen-card::before,
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.home-icon svg {
  width: 28px;
  height: 28px;
}

.home-card h2 {
  margin-bottom: 0.4rem;
}

.home-card p {
  margin-bottom: 1.75rem;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.btn-home {
  padding: 0.8rem 1.1rem;
  text-align: center;
}

/* ---- dashboard action cards -------------------------------------------- */

.dash-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.dash-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: card-enter .5s cubic-bezier(.16, 1, .3, 1) both;
}

.dash-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.dash-header h2 {
  margin-bottom: 0.35rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  overflow: hidden;
  animation: card-enter .55s cubic-bezier(.16, 1, .3, 1) both;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dash-card:nth-child(2) {
  animation-delay: .08s;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.dash-card:hover::before {
  transform: scaleX(1);
}

.dash-card:hover .dash-card-icon {
  transform: scale(1.06);
}

.dash-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: transform .2s ease;
}

.dash-card-icon svg {
  width: 26px;
  height: 26px;
}

.dash-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.dash-card p {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.dash-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.dash-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.dash-card:hover .dash-card-cta svg {
  transform: translateX(4px);
}

/* ---- generate / update pages ------------------------------------------- */

.gen-shell {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.gen-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: card-enter .55s cubic-bezier(.16, 1, .3, 1) both;
}

.gen-guidelines {
  flex: 1 1 320px;
  padding: 2.25rem;
  background: var(--primary-light);
  border-right: 1px solid var(--border);
}

.gen-guidelines .gen-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.gen-guidelines .gen-icon svg {
  width: 22px;
  height: 22px;
}

.gen-guidelines h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.gen-guidelines ul {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
  margin: 0;
}

.gen-guidelines li {
  position: relative;
  counter-increment: step;
  padding-left: 2.75rem;
  margin-bottom: 1.15rem;
  line-height: 1.5;
  color: #475569;
  font-size: 0.93rem;
  min-height: 26px;
}

.gen-guidelines li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -4px rgba(53, 95, 42, 0.6);
}

.gen-guidelines li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: -1.15rem;
  width: 2px;
  background: linear-gradient(var(--primary), transparent);
  opacity: 0.3;
}

.gen-form {
  flex: 1 1 360px;
  padding: 2.25rem;
}

.gen-form-title {
  font-weight: 700;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .gen-guidelines {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* ---- result box + copy button ------------------------------------------ */

.result-box {
  margin-top: 1.5rem;
  background: var(--primary-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  animation: result-pop .3s cubic-bezier(.16, 1, .3, 1) both, result-glow 1.6s ease-out .3s;
}

@keyframes result-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes result-glow {
  0% { box-shadow: 0 0 0 0 rgba(53, 95, 42, 0.35); }
  100% { box-shadow: 0 0 0 16px rgba(53, 95, 42, 0); }
}

.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.result-value-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.result-value {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  flex: 1 1 200px;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.copy-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.copy-btn .copy-icon-check {
  display: none;
}

.copy-btn.copied .copy-icon-clipboard {
  display: none;
}

.copy-btn.copied .copy-icon-check {
  display: block;
}

/* ---- auth pages (login / change password) ------------------------------ */

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem;
  animation: card-enter .55s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-card-wide {
  max-width: 480px;
}

.auth-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 1.1rem;
}

.auth-icon svg {
  width: 24px;
  height: 24px;
}

.auth-card h3 {
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-align: center;
}

.auth-card form {
  text-align: left;
}

.auth-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.auth-card .auth-subtitle {
  text-align: center;
}

/* ---- inputs with a leading icon --------------------------------------- */

.field-icon-wrap {
  position: relative;
}

.field-icon-wrap .field-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.field-icon-wrap .form-control {
  padding-left: 2.6rem;
}

.field-icon-wrap .form-control:focus ~ .field-icon {
  color: var(--primary);
}

.field-icon-wrap .form-control.has-toggle {
  padding-right: 2.6rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}

.password-toggle-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.password-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 95, 42, 0.18);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.password-toggle-btn .icon-eye-off {
  display: none;
}

.password-toggle-btn.is-visible .icon-eye {
  display: none;
}

.password-toggle-btn.is-visible .icon-eye-off {
  display: block;
}

/* ---- login split-hero --------------------------------------------------- */

.login-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.login-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 960px;
  min-height: 560px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: card-enter .6s cubic-bezier(.16, 1, .3, 1) both;
}

.login-visual {
  position: relative;
  flex: 1 1 400px;
  padding: 3rem 2.75rem;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.login-visual-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.login-visual-content {
  position: relative;
  z-index: 1;
}

.login-visual-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.brand-logo-badge img {
  height: 32px;
  width: auto;
  display: block;
}

.login-visual-heading {
  font-size: 1.55rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.login-visual-copy {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.85rem;
  text-align: center;
}

.login-visual-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.login-visual-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
}

.login-visual-points .point-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-visual-points .point-check svg {
  width: 12px;
  height: 12px;
}

.login-form-panel {
  flex: 1 1 360px;
  padding: 3rem 2.75rem;
  display: flex;
  align-items: center;
}

.login-form-inner {
  width: 100%;
}

.login-form-inner h3 {
  margin-bottom: 0.25rem;
}

@media (max-width: 860px) {
  .login-card {
    min-height: auto;
  }

  .login-visual {
    padding: 2.5rem 2rem;
  }

  .login-visual-heading {
    white-space: normal;
  }

  .login-visual-points {
    display: none;
  }
}

@media (max-width: 600px) {
  .login-visual-heading {
    font-size: 1.3rem;
  }
}

/* ---- footer -------------------------------------------------------- */

footer.footer {
  flex-shrink: 0;
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* legacy helpers kept for compatibility */
.centered-form {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  flex-direction: column;
}

.form-container {
  width: 350px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ---- motion accessibility -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body::before, body::after {
    display: none;
  }
}
