/* ============================================================
   CRM Marketing oSKAR — Login page
   Matches the Liquid Glass Pastel design system.
   ============================================================ */

:root {
  color-scheme: light;

  --lg-bg:
    radial-gradient(circle at 8% 8%, rgba(255, 209, 190, 0.72) 0%, rgba(255, 209, 190, 0) 34%),
    radial-gradient(circle at 84% 0%, rgba(159, 187, 255, 0.72) 0%, rgba(159, 187, 255, 0) 35%),
    radial-gradient(circle at 86% 80%, rgba(193, 246, 239, 0.55) 0%, rgba(193, 246, 239, 0) 34%),
    radial-gradient(circle at 18% 92%, rgba(204, 188, 255, 0.42) 0%, rgba(204, 188, 255, 0) 30%),
    linear-gradient(135deg, #f7ece5 0%, #eff4ff 44%, #f9f2f9 100%);

  --lg-text-primary: #11172e;
  --lg-text-secondary: #38425c;
  --lg-text-muted: #717a94;

  --lg-glass: rgba(255, 255, 255, 0.48);
  --lg-glass-strong: rgba(255, 255, 255, 0.62);

  --lg-input: rgba(255, 255, 255, 0.38);
  --lg-input-hover: rgba(255, 255, 255, 0.54);
  --lg-input-focus: rgba(255, 255, 255, 0.64);

  --lg-border: rgba(255, 255, 255, 0.70);

  --lg-gradient-primary: linear-gradient(135deg, #10d5c2 0%, #4aa8ff 48%, #8b5cf6 100%);

  --lg-radius-card: 28px;
  --lg-radius-control: 14px;
  --lg-radius-button: 15px;

  --lg-shadow-card: 0 30px 90px rgba(45, 55, 90, 0.18), 0 10px 30px rgba(45, 55, 90, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.34);
  --lg-shadow-input: 0 10px 26px rgba(45, 55, 90, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(255, 255, 255, 0.28);
  --lg-shadow-input-focus: 0 14px 34px rgba(45, 55, 90, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 0 0 1px rgba(23, 214, 209, 0.55), 0 0 26px rgba(23, 214, 209, 0.34);
  --lg-shadow-primary: 0 14px 32px rgba(74, 168, 255, 0.30), 0 8px 22px rgba(139, 92, 246, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.50);

  --lg-transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);

  font-family: Inter, Manrope, "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--lg-bg) fixed;
  color: var(--lg-text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- floating orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(255, 209, 190, 0.55);
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(159, 187, 255, 0.55);
  top: -60px;
  right: -100px;
}

.orb-3 {
  width: 340px;
  height: 340px;
  background: rgba(193, 246, 239, 0.45);
  bottom: -80px;
  right: -60px;
}

.orb-4 {
  width: 300px;
  height: 300px;
  background: rgba(204, 188, 255, 0.40);
  bottom: -100px;
  left: -50px;
}

/* ---------- login layout ---------- */
.login-root {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--lg-glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--lg-radius-card);
  box-shadow: var(--lg-shadow-card);
  border: 1px solid var(--lg-border);
  padding: 44px 40px 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-title {
  margin: 0 0 8px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--lg-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--lg-text-muted);
  font-weight: 500;
}

/* ---------- form ---------- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lg-text-secondary);
  letter-spacing: 0.01em;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--lg-text-primary);
  background: var(--lg-input);
  border: 1px solid transparent;
  border-radius: var(--lg-radius-control);
  box-shadow: var(--lg-shadow-input);
  outline: none;
  transition: background var(--lg-transition), box-shadow var(--lg-transition);
}

.login-input::placeholder {
  color: var(--lg-text-muted);
}

.login-input:hover {
  background: var(--lg-input-hover);
}

.login-input:focus {
  background: var(--lg-input-focus);
  box-shadow: var(--lg-shadow-input-focus);
}

/* ---------- error ---------- */
.login-error {
  font-size: 13px;
  font-weight: 500;
  color: #e0574f;
  text-align: center;
  padding: 8px 0;
}

/* ---------- button ---------- */
.login-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 24px;
  margin-top: 4px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--lg-gradient-primary);
  border: none;
  border-radius: var(--lg-radius-button);
  box-shadow: var(--lg-shadow-primary);
  cursor: pointer;
  transition: opacity var(--lg-transition), transform var(--lg-transition);
}

.login-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- spinner ---------- */
.login-button-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.6s linear infinite;
}

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