* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #020617;
}

body {
  min-height: 100vh;
  font-family: "Manrope", Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 25% 45%, rgba(0, 195, 255, 0.18), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.16), transparent 28%),
    linear-gradient(135deg, #020617, #061225 55%, #020617);
  color: white;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #20d5ff;
}

button,
input {
  font: inherit;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 56px;
  overflow-x: hidden;
}

.login-shell {
  width: 100%;
  max-width: 1450px;
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 460px;
  gap: 64px;
  align-items: center;
  position: relative;
}

.left-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: white;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 221, 255, 0.45);
}

.hero-stack {
  width: 100%;
  max-width: none;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(64px, 5.2vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-copy h1 span,
.login-card h2 span {
  color: #20d5ff;
  text-shadow: 0 0 28px rgba(32, 213, 255, 0.35);
}

.hero-copy p {
  margin-top: 20px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
}

.dashboard-card {
  margin-top: 34px;
  width: 660px;
  height: 330px;
  min-height: 330px;
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 24px;
  background: rgba(8, 20, 39, 0.86);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(0, 195, 255, 0.16);
  transform: perspective(1200px) rotateY(7deg) rotateX(2deg);
  transform-origin: center;
}

.dashboard-sidebar {
  width: 136px;
  flex: 0 0 136px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-sidebar img {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}

.dashboard-sidebar p {
  padding: 8px 10px;
  color: #94a3b8;
  font-size: 13px;
  border-radius: 10px;
}

.dashboard-sidebar .active {
  color: white;
  background: linear-gradient(90deg, #0891b2, #2563eb);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
}

.dashboard-main h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.dashboard-main > p {
  color: #94a3b8;
  margin-bottom: 14px;
}

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

.stats div,
.task-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.stats small {
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.stats strong {
  font-size: 24px;
}

.task-card strong {
  display: block;
  margin-bottom: 8px;
}

.task-card p {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 12px;
}

.login-card {
  width: 460px;
  max-width: 100%;
  padding: 42px;
  border-radius: 24px;
  background: rgba(5, 16, 34, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.48);
  box-shadow:
    0 0 55px rgba(0, 195, 255, 0.22),
    inset 0 0 35px rgba(59, 130, 246, 0.05);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1.08;
}

.subtitle {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 24px;
}

.login-card label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 700;
  font-size: 14px;
}

.auth-field > span {
  display: block;
  margin-bottom: 7px;
}

.login-card input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.78);
  color: white;
  outline: none;
}

.login-card input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.login-card input:focus {
  border-color: #20d5ff;
  box-shadow: 0 0 0 3px rgba(32, 213, 255, 0.12);
}

.auth-field.is-invalid input {
  border-color: rgba(255, 143, 159, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 143, 159, 0.12);
}

.auth-field-error {
  display: block;
  margin-top: 8px;
  color: #ffb8c3;
  font-size: 12px;
  font-weight: 800;
}

.auth-field-error[hidden] {
  display: none !important;
}

.forgot {
  display: block;
  margin: 8px 0 20px;
  text-align: right;
  color: #20d5ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.login-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #22d3ee, #2563eb);
  color: white;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.42);
}

.login-btn.is-loading {
  opacity: 0.82;
}

.divider {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #94a3b8;
}

.divider span {
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.social-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.google-btn {
  background: white;
  color: #020617;
  border: none;
}

.auth-message {
  display: none;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 143, 159, 0.34);
  border-radius: 12px;
  color: #ffd2da;
  background: rgba(255, 143, 159, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.auth-message.is-success {
  border-color: rgba(114, 240, 200, 0.3);
  color: #cffff0;
  background: rgba(114, 240, 200, 0.08);
}

.signup,
.terms {
  text-align: center;
  color: #cbd5e1;
}

.signup {
  margin-top: 12px;
  font-size: 14px;
}

.signup a,
.terms a {
  font-weight: 800;
  text-decoration: none;
}

.terms {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .login-page {
    padding: 34px;
  }

  .login-shell {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 5.4vw, 62px);
  }

  .dashboard-card {
    width: min(580px, 100%);
    height: 310px;
    min-height: 310px;
  }

  .login-card {
    width: 420px;
    padding: 36px;
  }
}

@media (max-width: 950px) {
  .login-page {
    padding: 28px;
    overflow: visible;
  }

  .login-shell {
    max-width: 620px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brand {
    margin-bottom: 44px;
  }

  .dashboard-card {
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none;
  }

  .right-panel {
    justify-content: flex-start;
  }

  .login-card {
    width: 100%;
    max-width: 440px;
  }
}

@media (max-width: 620px) {
  .login-page {
    padding: 22px 16px 32px;
  }

  .login-shell {
    gap: 34px;
  }

  .brand {
    margin-bottom: 34px;
    font-size: 24px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 14vw, 58px);
    line-height: 0.98;
  }

  .hero-copy p {
    max-width: 340px;
    font-size: 16px;
  }

  .dashboard-card {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    height: auto;
    min-height: 0;
    display: block;
    padding: 18px;
  }

  .dashboard-sidebar {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

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