* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #05060b;
  --card: rgba(15, 17, 27, 0.72);
  --red: #ff174f;
  --blue: #006cff;
  --text: #f5f7ff;
  --muted: #8e96aa;
  --border: rgba(255, 255, 255, 0.09);
}

body {
  min-height: 100vh;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 0, 72, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(0, 108, 255, 0.18), transparent 30%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  width: 350px;
  height: 350px;
  background: rgba(255, 0, 72, 0.08);
  filter: blur(100px);
  top: 20%;
  right: -150px;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  width: 350px;
  height: 350px;
  background: rgba(0, 108, 255, 0.08);
  filter: blur(100px);
  bottom: 5%;
  left: -150px;
  pointer-events: none;
}

.page {
  min-height: 100vh;
  padding: 20px;
}

.hidden {
  display: none !important;
}

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* LOGIN */

#loginPage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  width: min(430px, 100%);
  padding: 35px 25px;
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-box::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 150px;
  background: rgba(255, 0, 72, 0.16);
  filter: blur(60px);
}

.logo {
  width: 115px;
  height: 115px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 23, 79, 0.7);
  box-shadow:
    0 0 25px rgba(255, 23, 79, 0.35),
    0 0 50px rgba(0, 108, 255, 0.15);
  margin-bottom: 18px;
  position: relative;
}

.login-box h1 {
  font-size: 29px;
  letter-spacing: 2px;
  margin-bottom: 7px;
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

/* INPUTS */

input,
select {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: white;
  padding: 0 16px;
  margin-bottom: 15px;
  font-size: 14px;
  transition: 0.25s;
}

input::placeholder {
  color: #697184;
}

select {
  cursor: pointer;
}

select option {
  background: #10121b;
  color: white;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow:
    0 0 0 3px rgba(0, 108, 255, 0.1),
    0 0 20px rgba(0, 108, 255, 0.12);
}

/* BUTTONS */

button {
  border: none;
  outline: none;
  cursor: pointer;
  color: white;
  font-family: inherit;
  font-weight: bold;
}

.login-box > button,
.generate {
  width: 100%;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(110deg, var(--red), var(--blue));
  box-shadow:
    0 8px 25px rgba(255, 0, 72, 0.18),
    0 8px 25px rgba(0, 108, 255, 0.18);
  transition: 0.25s;
}

.login-box > button:hover,
.generate:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.login-box > button:active,
.generate:active {
  transform: scale(0.98);
}

.error {
  color: #ff5279;
  font-size: 13px;
  min-height: 20px;
  margin-top: 12px;
}

/* PANEL */

#panelPage {
  padding: 15px;
}

.topbar {
  max-width: 1100px;
  margin: 0 auto 25px;
  min-height: 70px;
  padding: 13px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar strong {
  display: block;
  font-size: 18px;
  letter-spacing: 1px;
}

.topbar span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  letter-spacing: 2px;
}

.logout {
  padding: 10px 17px;
  border-radius: 11px;
  background: rgba(255, 23, 79, 0.1);
  border: 1px solid rgba(255, 23, 79, 0.3);
  color: #ff557b;
}

.container {
  width: min(900px, 100%);
  margin: auto;
}

.hero {
  text-align: center;
  margin: 25px 0;
}

.hero h2 {
  font-size: 25px;
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  font-size: 13px;
}

.form-card,
.result-card {
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
}

.form-card label {
  display: block;
  color: #aeb5c6;
  font-size: 12px;
  margin: 3px 3px 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid input,
.grid select {
  margin-bottom: 15px;
}

.generate {
  margin-top: 8px;
}

/* RESULT */

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.result-header h3 {
  font-size: 19px;
  margin-bottom: 5px;
}

.result-header span {
  color: var(--muted);
  font-size: 12px;
}

.result-header button {
  background: linear-gradient(110deg, var(--blue), var(--red));
  padding: 11px 15px;
  border-radius: 11px;
  white-space: nowrap;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.info-row span {
  color: var(--muted);
}

.dns-box {
  margin-top: 18px;
}

.dns-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-bottom: 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.dns-row span {
  color: var(--muted);
  font-size: 11px;
}

.dns-row strong {
  direction: ltr;
  text-align: left;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
}

.dns-row button {
  background: rgba(0, 108, 255, 0.13);
  border: 1px solid rgba(0, 108, 255, 0.3);
  color: #62a5ff;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 11px;
}

/* MOBILE */

@media (max-width: 700px) {

  .page {
    padding: 12px;
  }

  .login-box {
    padding: 30px 18px;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .login-box h1 {
    font-size: 25px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card,
  .result-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero h2 {
    font-size: 21px;
  }

  .result-header {
    align-items: flex-start;
  }

  .dns-row {
    grid-template-columns: 1fr auto;
  }

  .dns-row span {
    grid-column: 1 / -1;
  }

  .dns-row strong {
    font-size: 12px;
  }

  .topbar {
    border-radius: 17px;
  }
}

@media (max-width: 380px) {

  .result-header {
    flex-direction: column;
  }

  .result-header button {
    width: 100%;
  }

  .dns-row {
    grid-template-columns: 1fr;
  }

  .dns-row button {
    width: 100%;
  }

  .dns-row strong {
    text-align: center;
  }
}