@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-regular.woff2") format("woff2"),
       url("../fonts/nunito-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-800.woff2") format("woff2"),
       url("../fonts/nunito-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --auth-accent: #1f6bff;
  --auth-accent-2: #19b89c;
  --auth-ink: #14233f;
  --auth-muted: #5c6f95;
  --auth-card: rgba(255, 255, 255, 0.92);
  --auth-border: rgba(20, 35, 63, 0.08);
  --auth-shadow: 0 30px 70px rgba(22, 42, 83, 0.2);
}

body.auth-body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 15%, #ffffff 0%, #f2f6ff 35%, #e7efff 100%);
  color: var(--auth-ink);
  font-size: 1rem;
}

.auth-body #app {
  min-height: 100vh;
  background: transparent;
}

.login {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.home-login {
  min-height: auto;
}

.auth-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.14), rgba(31, 107, 255, 0));
  filter: blur(10px);
  z-index: 0;
}

.auth-shell::before {
  top: -220px;
  left: -180px;
}

.auth-shell::after {
  bottom: -260px;
  right: -200px;
  background: radial-gradient(circle, rgba(25, 184, 156, 0.14), rgba(25, 184, 156, 0));
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
  animation: auth-rise 0.6s ease both;
}

.home-shell {
  min-height: auto;
  padding: 32px;
}

.home-card {
  max-width: 1100px;
}

.auth-card--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.auth-aside {
  padding: 48px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f6bff 0%, #2b80ff 45%, #19b89c 100%);
  position: relative;
  overflow: hidden;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.auth-aside::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  right: 32px;
  bottom: 28px;
  transform: rotate(12deg);
}

.auth-aside-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.auth-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.auth-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  opacity: 0.8;
}

.auth-aside-title {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
}

.auth-aside-text {
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 12px;
}

.auth-points li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-points li span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: inline-block;
}

.auth-content {
  padding: 48px;
  color: var(--auth-ink);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--auth-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.auth-form .form-label {
  font-weight: 700;
  color: #1a2c4c;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.auth-form .form-control {
  border-radius: 14px;
  border: 1px solid #e1e7f2;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: #f7f8fc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-form .form-control:focus {
  background: #ffffff;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 4px rgba(31, 107, 255, 0.18);
}

.auth-form .form-control::placeholder {
  color: #a2afc6;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.auth-btn {
  border-radius: 14px;
  padding: 0.85rem 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 14px 32px rgba(31, 107, 255, 0.26);
  background: linear-gradient(135deg, #1f6bff 0%, #3a8bff 60%, #51a2ff 100%);
  color: #ffffff;
  text-decoration: none;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(31, 107, 255, 0.3);
  color: #ffffff;
}

.auth-btn:focus {
  box-shadow: 0 0 0 4px rgba(31, 107, 255, 0.25);
}

.auth-link {
  color: var(--auth-accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  height: 1px;
  background: rgba(20, 35, 63, 0.1);
  margin: 22px 0;
}

.home-actions {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.home-action {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e1e7f2;
  background: #ffffff;
  color: var(--auth-ink);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(20, 35, 63, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-action:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 107, 255, 0.35);
  box-shadow: 0 18px 36px rgba(20, 35, 63, 0.12);
}

.home-action-media {
  width: 120px;
  flex: 0 0 120px;
}

.home-action-media img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.home-action-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-action-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.home-action-text {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.5;
}

.home-action-link {
  font-weight: 700;
  color: var(--auth-accent);
  margin-top: auto;
}

.auth-note {
  font-size: 0.9rem;
  color: var(--auth-muted);
  margin: 0;
}

.auth-alert {
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.85rem 1rem;
}

.auth-alert.alert-danger {
  border-color: rgba(230, 24, 13, 0.2);
  background: rgba(230, 24, 13, 0.06);
  color: #8a1c14;
}

.auth-alert.alert-success {
  border-color: rgba(2, 136, 36, 0.25);
  background: rgba(2, 136, 36, 0.08);
  color: #135b2b;
}

.auth-stagger {
  opacity: 0;
  animation: auth-fade-up 0.55s ease forwards;
  animation-delay: var(--auth-delay, 0s);
}

@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    padding: 36px;
  }

  .auth-content {
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .home-action {
    flex-direction: column;
  }

  .home-action-media {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .auth-shell {
    padding: 24px;
  }

  .auth-content,
  .auth-aside {
    padding: 28px;
  }

  .auth-title {
    font-size: 1.5rem;
  }
}

.app-content .home-login {
  min-height: calc(100vh - 180px);
}

.app.app-without-header .home-login {
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-stagger {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
