@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --page-bg: #eef4ff;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text-strong: #0b1636;
  --text-soft: #5b6f96;
  --brand-accent: #4b69d8;
  --blue-700: #0f4de0;
  --blue-600: #1d71ff;
  --cyan-400: #48d5ff;
  --gold-400: #ffd76b;
  --shadow-xl: 0 30px 90px rgba(10, 37, 102, 0.18);
}

* {
  box-sizing: border-box;
}

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

body.login-body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 12% 16%, rgba(72, 213, 255, 0.3), transparent 22%),
    radial-gradient(circle at 92% 12%, rgba(15, 77, 224, 0.18), transparent 28%),
    linear-gradient(145deg, #f5f9ff 0%, #eef4ff 48%, #f7fbff 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(480px, 1.12fr);
  gap: 24px;
  padding: 24px;
}

.login-panel,
.login-showcase {
  min-height: calc(100vh - 48px);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(100%, 560px);
  padding: 34px 34px 30px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.94)),
    var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(180deg, rgba(72, 213, 255, 0.16), rgba(72, 213, 255, 0));
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.login-brand__mark {
  position: relative;
  width: min(100%, 390px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: isolate;
}

.login-brand__mark::before {
  content: "";
  position: absolute;
  inset: 10% 6% 16%;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(75, 105, 216, 0.12), rgba(75, 105, 216, 0.04) 55%, transparent 72%);
  filter: blur(10px);
  z-index: 0;
}

.login-brand__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  filter:
    saturate(1.32)
    contrast(1.08)
    brightness(0.98)
    drop-shadow(0 8px 18px rgba(38, 63, 156, 0.18));
}

.login-brand__caption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--brand-accent);
  text-shadow: 0 6px 16px rgba(75, 105, 216, 0.16);
}

.login-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.login-copy {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
  max-width: 500px;
}

.login-alert {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
}

.login-alert--info {
  color: #0c4fda;
  background: rgba(29, 113, 255, 0.09);
  border: 1px solid rgba(29, 113, 255, 0.12);
}

.login-alert--danger {
  color: #c71d41;
  background: rgba(255, 85, 123, 0.1);
  border: 1px solid rgba(255, 85, 123, 0.14);
}

.login-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field label {
  font-size: 13px;
  font-weight: 800;
  color: #33466e;
  letter-spacing: 0.02em;
}

.login-field__control {
  position: relative;
}

.login-input {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(111, 143, 198, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.94));
  color: var(--text-strong);
  padding: 18px 18px 18px 56px;
  font: inherit;
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 26px rgba(15, 77, 224, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-input::placeholder {
  color: #8ca0c0;
}

.login-input:focus {
  outline: none;
  border-color: rgba(29, 113, 255, 0.44);
  box-shadow:
    0 0 0 5px rgba(72, 213, 255, 0.16),
    0 14px 28px rgba(15, 77, 224, 0.1);
  transform: translateY(-1px);
}

.login-field--username .login-input,
.login-field--password .login-input {
  background-repeat: no-repeat;
  background-position: 20px center;
  background-size: 18px;
}

.login-field--username .login-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z' stroke='%231D71FF' stroke-width='1.8'/%3E%3Cpath d='M3 20C4.7292 16.9466 8.00269 15 12 15C15.9973 15 19.2708 16.9466 21 20' stroke='%231D71FF' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.login-field--password .login-input {
  padding-right: 124px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='10' width='14' height='10' rx='2' stroke='%231D71FF' stroke-width='1.8'/%3E%3Cpath d='M8 10V7.5C8 5.01472 10.0147 3 12.5 3C14.9853 3 17 5.01472 17 7.5V10' stroke='%231D71FF' stroke-width='1.8'/%3E%3C/svg%3E");
}

.login-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(111, 143, 198, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-700);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 77, 224, 0.08);
}

.login-toggle__eye {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2 12C4.7 7.7 8.03 5.55 12 5.55C15.97 5.55 19.3 7.7 22 12C19.3 16.3 15.97 18.45 12 18.45C8.03 18.45 4.7 16.3 2 12Z' stroke='%231D71FF' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='3.2' stroke='%231D71FF' stroke-width='1.8'/%3E%3C/svg%3E");
  background-size: cover;
}

.login-field.has-error .login-input {
  border-color: rgba(199, 29, 65, 0.35);
  box-shadow: 0 0 0 5px rgba(255, 85, 123, 0.08);
}

.login-field__error {
  color: #c71d41;
  font-size: 13px;
}

.login-submit {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border: none;
  border-radius: 22px;
  padding: 18px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0f58ff 0%, #1a86ff 50%, #12b9ff 100%);
  box-shadow:
    0 20px 38px rgba(16, 93, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.login-submit::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -24%;
  width: 32%;
  height: 200%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
  animation: loginSheen 4.6s ease-in-out infinite;
  pointer-events: none;
}

.login-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.05) brightness(1.02);
}

.login-submit span {
  position: relative;
  z-index: 1;
}

.login-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  padding: 42px 42px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(72, 213, 255, 0.28), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(145deg, #1e6aff 0%, #143dc0 44%, #0a2a8f 100%);
  box-shadow: var(--shadow-xl);
}

.login-showcase::before,
.login-showcase::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-showcase::before {
  width: 680px;
  height: 680px;
  right: -260px;
  top: -300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-showcase::after {
  width: 520px;
  height: 520px;
  left: -210px;
  bottom: -260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-showcase__header {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.login-showcase__title {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 690px;
}

.showcase-stage {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding-top: 28px;
  min-height: 520px;
}

.showcase-device {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 18px;
  min-height: 450px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.95));
  color: var(--text-strong);
  box-shadow: 0 34px 60px rgba(5, 19, 79, 0.24);
}

.showcase-device__sidebar {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f2f7ff, #ebf2ff);
}

.showcase-device__brand-wrap {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.showcase-device__brand {
  width: 100%;
  display: block;
  padding: 0;
  filter:
    saturate(1.26)
    contrast(1.06)
    brightness(0.98)
    drop-shadow(0 8px 18px rgba(38, 63, 156, 0.14));
}

.showcase-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.showcase-nav__item {
  padding: 12px 14px;
  border-radius: 16px;
  color: #4f628a;
  font-size: 13px;
  font-weight: 700;
}

.showcase-nav__item--active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-400));
  box-shadow: 0 14px 24px rgba(16, 93, 255, 0.24);
}

.showcase-device__content {
  display: grid;
  gap: 18px;
}

.showcase-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.showcase-kpi {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(111, 143, 198, 0.12);
}

.showcase-kpi--accent {
  background: linear-gradient(135deg, rgba(15, 77, 224, 0.95), rgba(72, 213, 255, 0.88));
  color: #fff;
}

.showcase-kpi__label {
  font-size: 12px;
  opacity: 0.78;
}

.showcase-kpi__value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.showcase-card {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(111, 143, 198, 0.12);
  box-shadow: 0 18px 32px rgba(33, 70, 148, 0.08);
}

.showcase-card__title {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 800;
}

.showcase-ring {
  width: 176px;
  height: 176px;
  margin: 8px auto 14px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #0f4de0 0 36%, #48d5ff 36% 68%, #ffd76b 68% 86%, #eaf2ff 86% 100%);
  display: grid;
  place-items: center;
}

.showcase-ring__core {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.showcase-ring__core strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.showcase-ring__core span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.showcase-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--text-soft);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-dot--blue {
  background: #0f4de0;
}

.legend-dot--cyan {
  background: #48d5ff;
}

.legend-dot--gold {
  background: #ffd76b;
}

.showcase-bars {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.showcase-bar {
  display: grid;
  gap: 6px;
}

.showcase-bar span {
  font-size: 12px;
  font-weight: 700;
  color: #5a6c92;
}

.showcase-bar b {
  position: relative;
  display: block;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f4de0, #1d71ff 58%, #48d5ff);
  box-shadow: 0 10px 18px rgba(15, 77, 224, 0.16);
}

.showcase-bar b::after {
  content: "";
  position: absolute;
  inset: 2px 2px auto;
  height: 42%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.34);
}

.showcase-float {
  position: absolute;
  border-radius: 24px;
  padding: 18px 18px 20px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 36px rgba(5, 19, 79, 0.2);
  animation: loginFloat 5.6s ease-in-out infinite;
}

.showcase-float--left {
  left: -16px;
  bottom: 18px;
  width: 220px;
}

.showcase-float--right {
  right: -16px;
  top: 48%;
  width: 260px;
  animation-delay: 1.1s;
}

.showcase-float__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-float__value {
  margin: 10px 0 6px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.showcase-float__meta {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.showcase-progress {
  height: 12px;
  margin: 14px 0 10px;
  border-radius: 999px;
  background: #e7efff;
  overflow: hidden;
}

.showcase-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f4de0, #1d71ff 55%, #48d5ff);
}

@keyframes loginSheen {
  0%,
  100% {
    left: -24%;
    opacity: 0;
  }

  10%,
  52% {
    opacity: 1;
  }

  60% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes loginFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1240px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel,
  .login-showcase {
    min-height: auto;
  }

  .showcase-stage {
    min-height: 0;
    padding-bottom: 200px;
    padding-top: 18px;
  }
}

@media (max-width: 860px) {
  .login-shell {
    padding: 14px;
  }

  .login-card,
  .login-showcase {
    padding: 24px;
    border-radius: 28px;
  }

  .showcase-device {
    grid-template-columns: 1fr;
  }

  .showcase-grid,
  .showcase-kpis {
    grid-template-columns: 1fr;
  }

  .showcase-float--left,
  .showcase-float--right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .showcase-stage {
    padding-bottom: 0;
    padding-top: 10px;
  }
}

@media (max-width: 560px) {
  .login-card,
  .login-showcase {
    padding: 20px 18px;
  }

  .login-heading {
    font-size: 25px;
  }

  .login-input {
    min-height: 58px;
    padding-left: 50px;
  }

  .login-field--password .login-input {
    padding-right: 108px;
  }

  .login-toggle {
    padding: 0 10px;
  }

  .login-toggle__label {
    display: none;
  }

  .showcase-ring {
    width: 150px;
    height: 150px;
  }

  .showcase-ring__core {
    width: 98px;
    height: 98px;
  }
}
