@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,500,0,0&icon_names=qr_code");

:root {
  --bg: #040421;
  --panel: rgba(17, 18, 39, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --quiet: #8e91aa;
  --yellow: #ff9900;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Rubik", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(4, 4, 33, 0.74), rgba(4, 4, 33, 0.98)),
    url("../assets/images/background/IMAGE.png") center / cover no-repeat,
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 42px 20px;
}

.auth-brand {
  position: fixed;
  top: 28px;
  left: 32px;
  display: inline-flex;
  align-items: center;
}

.auth-brand img {
  display: block;
  width: 128px;
  height: auto;
}

.auth-card {
  position: relative;
  width: min(492px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}


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

.auth-copy.compact {
  text-align: left;
}

.auth-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
}

.auth-copy h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}

.auth-copy p {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.auth-copy.compact .eyebrow {
  margin-bottom: 8px;
}

.auth-copy.compact h1 {
  font-size: 36px;
}

.qr-login-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(255, 153, 0, 0.38);
  border-radius: 14px;
  color: #9dccff;
  background: rgba(4, 4, 33, 0.72);
  cursor: pointer;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 28px;
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 4, 33, 0.72);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.auth-tab.active {
  color: #040421;
  background: var(--yellow);
}

.auth-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
.lnurl-code {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(4, 4, 33, 0.72);
  outline: 0;
}

input {
  padding: 0 16px;
}

input:focus,
.lnurl-code:focus {
  border-color: var(--yellow);
}


.auth-button,
.auth-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #040421;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 700;
}


.auth-button.secondary {
  color: var(--text);
  background: #302a3f;
}

.auth-link-button {
  margin-top: 12px;
}

.lnurl-panel {
  display: grid;
  gap: 14px;
}

.lnurl-panel[hidden] {
  display: none;
}

.lnurl-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 4, 33, 0.58);
  text-align: center;
}

.lnurl-box img {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
}

.lnurl-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.lnurl-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.lnurl-code {
  min-height: 96px;
  padding: 14px;
  resize: vertical;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.wallet-dialog {
  width: min(360px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  background: transparent;
}

.wallet-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
}

.wallet-card {
  overflow: hidden;
  border-radius: 18px;
  background: #10151c;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.wallet-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #040421;
  background: var(--yellow);
  font-size: 20px;
  font-weight: 700;
}

.wallet-body {
  padding: 22px;
}

.wallet-qr {
  display: grid;
  place-items: center;
  padding: 16px;
  background: #ffffff;
}

.wallet-qr img {
  width: min(288px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.wallet-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 30px;
  color: var(--text);
  font-size: 14px;
}

.wallet-copy button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: #9dccff;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}

.wallet-actions button,
.wallet-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.wallet-close {
  border: 1px solid var(--yellow);
  color: var(--yellow);
  background: transparent;
}

.wallet-open {
  border: 1px solid var(--yellow);
  color: #040421;
  background: var(--yellow);
}

.auth-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.auth-message.success {
  color: #58dd93;
}

.auth-message.error {
  color: #ff8f8f;
}

.auth-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.auth-footer a {
  color: var(--yellow);
  font-weight: 700;
}


.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--quiet);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.muted-form {
  opacity: 0.82;
}

@media (max-width: 640px) {
  .auth-page {
    align-items: start;
    padding-top: 96px;
  }

  .auth-brand {
    top: 24px;
    left: 20px;
  }

  .auth-card {
    padding: 26px 20px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }
}
