/* Voida login / register — centered panel on shared space background */

body.guest.do-login-page {
  overflow-x: hidden;
}

body.guest.do-login-page #app::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 16, 0.12) 0%, rgba(4, 8, 16, 0.28) 100%);
  pointer-events: none;
  z-index: 0;
}

body.guest.do-login-page #main {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

body.guest.do-login-page h1,
body.guest.do-login-page h4 {
  color: inherit;
}

body.guest.do-login-page #app {
  min-height: 100vh;
}

body.guest.do-login-page .do-footer {
  display: none;
}

.index {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  background: transparent;
}

.voida-login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.voida-login-brand {
  margin-bottom: 18px;
  text-align: center;
  font-family: var(--do-font-display);
  font-size: clamp(40px, 7vw, 54px);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #edf6ff;
  text-shadow:
    0 0 16px rgba(110, 181, 255, 0.85),
    0 0 36px rgba(60, 140, 255, 0.45);
}

.voida-login-panel {
  position: relative;
  padding: 22px 24px 18px;
  background: rgba(8, 14, 28, 0.68);
  border: 1px solid rgba(90, 150, 220, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(50, 110, 200, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.45);
  clip-path: polygon(
    12px 0, calc(100% - 12px) 0, 100% 12px,
    100% calc(100% - 12px), calc(100% - 12px) 100%,
    12px 100%, 0 calc(100% - 12px), 0 12px
  );
}

.voida-login-panel::before,
.voida-login-panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(110, 170, 240, 0.45);
  pointer-events: none;
}

.voida-login-panel::before {
  top: 7px;
  left: 7px;
  border-right: none;
  border-bottom: none;
}

.voida-login-panel::after {
  bottom: 7px;
  right: 7px;
  border-left: none;
  border-top: none;
}

.voida-login-head {
  text-align: center;
  margin-bottom: 20px;
}

.voida-login-eyebrow {
  margin: 0 0 8px;
  font-family: var(--do-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(150, 190, 240, 0.75);
}

.voida-login-title {
  margin: 0 0 6px;
  font-family: var(--do-font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: none;
}

.voida-login-subtitle {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 175, 210, 0.65);
}

.voida-auth-form {
  display: none;
}

.voida-auth-form.is-active {
  display: block;
}

.voida-field {
  margin-bottom: 12px;
}

.voida-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 175, 210, 0.7);
}

.voida-auth-form--login .voida-field label {
  display: none;
}

.voida-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.voida-input-wrap .material-icons {
  position: absolute;
  left: 11px;
  font-size: 17px;
  color: rgba(110, 170, 240, 0.7);
  pointer-events: none;
}

.voida-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 38px;
  border: 1px solid rgba(70, 120, 190, 0.35);
  border-radius: 3px;
  background: rgba(4, 8, 18, 0.78);
  color: #e8f0ff;
  font-family: var(--do-font-body);
  font-size: 14px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.voida-input-wrap input::placeholder {
  color: rgba(120, 150, 190, 0.55);
  font-size: 13px;
}

.voida-input-wrap input:focus {
  outline: none;
  border-color: rgba(110, 170, 255, 0.65);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(80, 140, 220, 0.18);
}

.voida-input-wrap input.valid {
  border-color: rgba(92, 184, 42, 0.55);
}

.voida-input-wrap input.invalid {
  border-color: rgba(220, 70, 90, 0.7);
}

.voida-toggle-password {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: rgba(110, 170, 240, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.voida-toggle-password:hover {
  color: #a6dcf9;
}

.voida-toggle-password .material-icons {
  position: static;
  font-size: 17px;
  pointer-events: none;
}

.voida-field-helper {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(130, 155, 190, 0.7);
}

.voida-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
  font-size: 11px;
}

.voida-login-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(180, 200, 230, 0.8);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.voida-login-options input[type="checkbox"] {
  accent-color: #3b82f6;
}

.voida-forgot-link {
  color: #6eb5ff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.voida-forgot-link:hover {
  color: #a6dcf9;
}

.voida-btn {
  display: block;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 999px;
  font-family: var(--do-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.voida-btn:active {
  transform: translateY(1px);
}

.voida-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #6eb5ff 0%, #2563eb 48%, #1d4ed8 100%);
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.voida-btn-primary:hover {
  box-shadow:
    0 0 24px rgba(96, 165, 250, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.voida-btn-outline {
  color: rgba(220, 230, 245, 0.9);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(160, 190, 230, 0.35);
  box-shadow: none;
}

.voida-btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(190, 210, 240, 0.5);
}

.voida-or-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: rgba(120, 150, 190, 0.55);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.voida-or-sep::before,
.voida-or-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(80, 120, 180, 0.28);
}

.voida-register-agreement {
  margin: 6px 0 14px;
  font-size: 11px;
  color: rgba(180, 200, 230, 0.85);
}

.voida-register-agreement label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.voida-register-agreement a {
  color: #6eb5ff;
}

.voida-server-status {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(70, 110, 170, 0.22);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(140, 165, 200, 0.75);
}

.voida-server-status .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 5px 0 3px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.85);
  vertical-align: middle;
}

.voida-login-copyright {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 140, 170, 0.55);
  pointer-events: none;
}

body.guest.do-login-page #toast-container {
  bottom: 40px !important;
}

.index .tabs,
.index .card {
  display: none;
}

@media (max-width: 480px) {
  .voida-login-panel {
    padding: 18px 16px 16px;
  }

  .voida-login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
