:root {
  --dv-bg: #0b0b12;
  --dv-panel-soft: #171727;
  --dv-text: #f5f5ff;
  --dv-text-soft: #b7b7d6;
  --dv-purple-600: #7b61ff;
  --dv-purple-400: #c084fc;
  --dv-danger: #ff6b8a;
  --dv-border: rgba(255, 255, 255, 0.1);
}
* {
  box-sizing: border-box;
}
body.auth-page {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top right, rgba(123, 97, 255, 0.25), transparent 42%), var(--dv-bg);
  color: var(--dv-text);
  min-height: 100vh;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-visual {
  position: relative;
  background: radial-gradient(circle at 26% 18%, rgba(192, 132, 252, 0.22), transparent 40%), radial-gradient(circle at 78% 82%, rgba(123, 97, 255, 0.25), transparent 36%), linear-gradient(140deg, #101024 0%, #1b1338 55%, #261a48 100%);
  border-right: 1px solid var(--dv-border);
  overflow: hidden;
  padding: 34px 40px;
}
.brand-mark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 50;
}
.brand-mark img {
  width: auto;
  height: 80px;
  background: rgb(0 0 0 / 60%);
  padding: 15px;
  border-radius: 10px;
}
@media (hover: hover) {
  .brand-mark:hover,
  .brand-mark:focus {
    color: inherit;
    text-decoration: none;
  }
}
.brand-mark span {
  background: linear-gradient(90deg, var(--dv-purple-600), var(--dv-purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.visual-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.visual-card-inner {
  height: 100%;
  border-right: 1px solid rgba(192, 132, 252, 0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.visual-icon {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 34px;
}
.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  gap: 20px;
  align-content: center;
  padding: 36px 24px;
}
.auth-form-wrap .logo-section {
  display: none;
}
.auth-form-wrap .logo-section a {
  display: inline-block;
}
.auth-form-wrap .logo-section a img {
  width: auto;
  height: 50px;
}
@media (max-width:1024px){
  .auth-form-wrap .logo-section {
    display: block;
  }
}
.auth-card {
  width: min(100%, 470px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--dv-border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(5px);
}
.auth-page--register .auth-card {
  width: min(100%, 500px);
}
.auth-card--narrow {
  width: min(100%, 460px);
}
.auth-title {
  margin: 0 0 15px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
}
.auth-subtitle {
  margin: 0 0 35px;
  color: var(--dv-text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.field {
  margin-bottom: 20px;
}
.field-hint {
  margin-top: 4px;
  color: var(--dv-text-soft);
  font-size: 12px;
  line-height: 1.45;
}
.input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: var(--dv-panel-soft);
  font-family: inherit;
  color: #fff;
  height: 52px;
  padding: 0 18px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input::placeholder {
  color: #8585a7;
}
.input:focus {
  border-color: rgba(192, 132, 252, 0.9);
  box-shadow: 0 0 0 4px rgba(123, 97, 255, 0.16);
}
.input[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
}
.remember-row {
  margin: 8px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--dv-text-soft);
  font-size: 13px;
}
.remember-row a {
  color: var(--dv-purple-400);
  text-decoration: none;
  font-weight: 500;
}
@media (hover: hover) {
  .remember-row a:hover {
    color: #d6a5ff;
  }
}
.btn {
  position: relative;
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--dv-purple-600), var(--dv-purple-400));
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(123, 97, 255, 0.36);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s;
}
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(123, 97, 255, 0.45);
  }
}
.btn:disabled,
.btn.is-loading {
  opacity: 0.82;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 12px 30px rgba(123, 97, 255, 0.28);
}
.btn.is-loading .btn__label {
  opacity: 0;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-btn-spin 0.7s linear infinite;
}
@keyframes auth-btn-spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-separator {
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8c8cae;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.btn-google {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1b1b2d;
  color: #f3f3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.btn-google svg {
  width: 18px;
  height: 18px;
}
@media (hover: hover) {
  .btn-google:hover {
    background: #222238;
    border-color: rgba(192, 132, 252, 0.55);
    color: #fff;
  }
}
.google-g {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(#ea4335 0deg 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg 360deg);
  position: relative;
}
.google-g::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #1b1b2d;
  border-radius: 50%;
}
.auth-footer {
  margin-top: 22px;
  text-align: center;
  color: var(--dv-text-soft);
  font-size: 13px;
}
.auth-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.auth-global-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #8e8ead;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.auth-global-footer .dot {
  margin: 0 6px;
}
.auth-global-footer__links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.auth-global-footer__links a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) {
  .auth-global-footer__links a:hover {
    color: #c084fc;
  }
}
.error-text {
  margin-top: 8px;
  color: var(--dv-danger);
  font-size: 12px;
  font-weight: 500;
}
.verify-message {
  color: var(--dv-text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.verify-alert {
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: rgba(123, 97, 255, 0.14);
  color: #e8ddff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.verify-alert--warning {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}
.oauth-alert {
  border: 1px solid rgba(255, 107, 138, 0.45);
  background: rgba(255, 107, 138, 0.14);
  color: #ffd8e3;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}
.oauth-alert--success {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
  color: #dcfce7;
}
.verify-resend-form {
  margin-top: 14px;
}
.btn-ghost {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #f3f3ff;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
@media (hover: hover) {
  .btn-ghost:hover {
    border-color: rgba(192, 132, 252, 0.55);
    background: rgba(123, 97, 255, 0.12);
  }
}
.theme-picker-label {
  margin: 28px 0 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dv-text-soft);
  text-align: center;
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px 14px;
  border: 1px solid var(--dv-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dv-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.12s,
    box-shadow 0.18s;
  cursor: pointer;
}
@media (hover: hover) {
  .theme-card:hover,
  .theme-card:focus {
    border-color: rgba(192, 132, 252, 0.65);
    background: rgba(123, 97, 255, 0.13);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 97, 255, 0.22);
    text-decoration: none;
    outline: none;
  }
}
.theme-card-icon {
  font-size: 26px;
  line-height: 1;
  display: block;
}
@media (max-width: 992px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-form-wrap {
    padding: 26px 16px;
  }
  .auth-card {
    padding: 28px 22px;
  }
  .auth-title {
    font-size: 32px;
  }
  .input {
    font-size: 16px;
  }
}
body.auth-page #app > .header,
body.auth-page #app > .footer {
  display: none;
}
body.auth-page .main-body {
  margin: 0;
  padding: 0;
  min-height: 100svh;
}
body.auth-page #app {
  min-height: 100svh;
}
body.auth-page .auth-card .input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
body.auth-page .auth-card .btn {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--dv-purple-600), var(--dv-purple-400));
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(123, 97, 255, 0.36);
}
