:root {
  --solar-primary: #0d6efd;
  --solar-primary-dark: #084298;
  --solar-accent: #ffcc00;
  --solar-bg: #f6f8fb;
  --solar-card-bg: #ffffff;
  --solar-text: #1f2937;
  --solar-muted: #6b7280;
  --solar-border: #e5e7eb;
  --solar-danger: #dc3545;
  --solar-radius: 18px;
  --solar-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 204, 0, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f3f6fb 45%, #eef3f8 100%);
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--solar-text);
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 100px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--solar-radius);
  box-shadow: var(--solar-shadow);
  padding: 36px 34px 30px;
  backdrop-filter: blur(8px);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-logo {
  width: 150px;
  max-width: 60%;
  margin-bottom: 18px;
}

.auth-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--solar-text);
}

.auth-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--solar-muted);
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--solar-text);
}

.auth-form .form-control {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--solar-border);
  font-size: 14px;
  padding: 10px 13px;
  box-shadow: none;
}

.auth-form .form-control:focus {
  border-color: var(--solar-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.auth-form .form-text {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--solar-muted);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper .form-control {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--solar-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
}

.password-toggle:hover {
  color: var(--solar-primary);
}

.password-toggle:focus {
  outline: none;
}

.form-error {
  display: block;
  margin-top: 8px;
  color: var(--solar-danger);
  font-size: 13px;
  text-align: center;
}

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border-radius: 10px;
  font-weight: 600;
}

.auth-recovery {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--solar-muted);
}

.auth-recovery a {
  display: inline-block;
  margin-left: 4px;
  color: var(--solar-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-recovery a:hover {
  color: var(--solar-primary-dark);
  text-decoration: underline;
}

.auth-reset {
  margin-top: 16px;
}

.auth-reset-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--solar-muted);
  text-align: center;
}

.auth-reset-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auth-reset-actions .btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
}

.auth-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  min-height: 64px;
  padding: 10px 24px;
  background: rgba(242, 242, 242, 0.96);
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

.auth-footer-logo {
  width: 120px;
  max-height: 42px;
  object-fit: contain;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.auth-footer-links a {
  color: #334155;
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: var(--solar-primary);
  text-decoration: underline;
}

.auth-footer-copy {
  margin-left: auto;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

.auth-splash {
  position: fixed;
  inset: 0;
  background-color: white;
  opacity: 1;
  z-index: 9999;
  transition: opacity 10s;
}

.auth-splash.transparent {
  opacity: 0;
  z-index: -1;
}

.auth-splash-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  max-width: 70vw;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 99999;
  animation: fade-in 2s forwards;
}

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

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 32px 16px 140px;
    align-items: flex-start;
  }

  .auth-card {
    max-width: 100%;
    padding: 30px 22px 26px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-footer {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .auth-footer-copy {
    margin-left: 0;
    white-space: normal;
  }

  .auth-footer-links {
    justify-content: center;
  }
}
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 20;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle i,
.password-toggle svg {
  pointer-events: none;
}

.password-wrapper input {
  padding-right: 48px;
}