:root {
  --auth-bg: #060c18;
  --auth-card: rgba(17, 26, 43, 0.92);
  --auth-line: rgba(255, 255, 255, 0.08);
  --auth-gold: #ffd36a;
  --auth-gold-2: #ffc43a;
  --auth-text: #ffffff;
  --auth-muted: rgba(255, 255, 255, 0.68);
  --auth-danger: #ff9d9d;
  --auth-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --auth-input-bg: #09101f;
}

* {
  box-sizing: border-box;
}

body.standalone-page {
  margin: 0;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top, rgba(125, 199, 255, 0.1), transparent 28%),
    radial-gradient(circle at right top, rgba(255, 211, 106, 0.1), transparent 30%),
    var(--auth-bg);
}

.standalone-card {
  width: 100%;
  max-width: 560px;
  padding: 32px;
  border-radius: 26px;
  border: 1px solid var(--auth-line);
  background: var(--auth-card);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(14px);
}

.auth-card {
  max-width: 460px;
}

.message-card {
  text-align: center;
}

.logout-brand {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--auth-line);
}

.logout-title {
  margin-top: 2px !important;
}

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

.brand img {
  display: block;
  max-height: 86px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px rgba(255, 211, 106, 0.35));
}

.brand h1,
.message-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  color: var(--auth-gold);
  letter-spacing: 1px;
}

.brand p,
.message-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--auth-muted);
}

.message-card h1.danger-title {
  color: var(--auth-danger);
}

.subtle-spacer {
  margin-top: 8px !important;
}

.standalone-form label {
  display: block;
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--auth-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.standalone-form input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--auth-line);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  outline: none;
  font-size: 15px;
}

.standalone-form input:focus {
  border-color: rgba(255, 211, 106, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.08);
}

button,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--auth-gold) 0%, var(--auth-gold-2) 100%);
  color: #111;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 24px rgba(255, 211, 106, 0.2);
  cursor: pointer;
}

.standalone-form button {
  width: 100%;
}

.btn.alt {
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-text);
  border: 1px solid var(--auth-line);
  box-shadow: none;
}

.message-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  line-height: 1.45;
}

.message-box.error {
  background: rgba(255, 90, 90, 0.1);
  border-color: rgba(255, 90, 90, 0.16);
  color: #ffd1d1;
}

.standalone-foot {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--auth-muted);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 106, 0.12);
  border: 1px solid rgba(255, 211, 106, 0.18);
  color: var(--auth-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.perm-box {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.action-row.center {
  justify-content: center;
}

@media (max-width: 640px) {
  body.standalone-page {
    padding: 16px;
  }

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

  .brand h1,
  .message-card h1 {
    font-size: 28px;
  }

  .action-row {
    flex-direction: column;
  }

  .action-row .btn {
    width: 100%;
  }
}
