/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 30, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(186, 12, 110, 0.3);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #fcfcfc;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #fcfcfc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #ffd54f;
}

/* Main Login Container */
.login {    
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  /* height: 100vh; */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3d3d3d;
  background-color: #080117;
}

.login .panel {
  position: relative;
  width: min(90vw, 360px);
  min-height: 120px;
  background: rgba(13, 13, 30, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 22px;
  color: #fcfcfc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 32px rgba(0, 0, 0, 0.85);
  border: 2px solid #ba0c6e;
  margin: 12px;
}

/* Input Styles */
.login input[type="text"],
.login input[type="email"],
.login input[type="password"],
.login button {
  font-family: inherit;
  border-radius: 8px;
}

.login input[type="text"],
.login input[type="email"],
.login input[type="password"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  margin: 0;
  font-size: 14px;
}

.login input[type="text"]::placeholder,
.login input[type="email"]::placeholder,
.login input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 0 0 4px rgba(255, 157, 0, 0.4);
  border-color: rgba(255,255,255,0.25);
}

.login input[type="text"]:disabled,
.login input[type="email"]:disabled,
.login input[type="password"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Styles */
.form {
  width: 100%;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Button Styles */
.btn-primary {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(90deg, #ff9a00 0%, #ff4d4d 100%);
  color: #fff;
  transition: transform .02s ease, opacity .2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active { 
  transform: translateY(1px); 
}

.btn-primary[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.login button {
  padding: 8px 14px;
  border: none;
  background: linear-gradient(90deg, #ff9a00 0%, #ff4d4d 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.login button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Guest Login Button */
.guest-btn {
  cursor: not-allowed;
  font-size: 1.3em;
  font-weight: 800;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff9a00 0%, #ff4d4d 100%);
  color: #fff;
  transition: transform 0.02s ease, opacity 0.2s ease;
}

.guest-btn:not([disabled]) {
  cursor: pointer;
}

.guest-btn:not([disabled]):hover {
  opacity: 0.9;
}

.guest-btn:not([disabled]):active {
  transform: translateY(1px);
}

/* Link Styles */
.login a {
  color: #ffd54f;
  text-decoration: underline;
}

.login a:hover {
  opacity: 0.85;
}

/* Text Styles */
.login .disclaimer,
.login label {
  line-height: 1.4em;
}

.login .logins {
  display: flex;
  flex-direction: column;
}

.login .disclaimer {
  font-size: 12px;
  padding: 6px 0px;
  font-weight: 800;
  text-align: center;
}

/* Email Login Module Styles */
.title {
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  margin-bottom: 12px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  margin: 8px 0 4px;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.consent label {
  cursor: pointer;
}

.consent a {
  text-decoration: underline;
}

.switch {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
}

.switch a {
  cursor: pointer;
  text-decoration: underline;
}

.rg {
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
  opacity: 0.85;
}

.help {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.9;
  margin-top: 6px;
  text-align: center;
}

.error {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
  text-align: center;
  color: #ff6b6b;
}

.success {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
  text-align: center;
  color: #2fe39b;
}

.muted {
  opacity: 0.8;
}

.divider {
  margin: 10px auto;
  height: 1px;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}

.link {
  text-decoration: underline;
  cursor: pointer;
}

/* Loading Overlay */
.login .creating-account {
  position: fixed;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  left: 0;
  top: 0;
}

.login .creating-account-ul {
  position: absolute;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
}

.login .content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.login .content h1 {
  margin-top: 20px;
  font-size: 1.5em;
  text-align: center;
}

/* Google Sign-In Button Container */
#google-signin-button,
#google-signin-button-signup {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Game Info Sections (if needed) */
.login .gameInfo, 
.gameInfoPortrait {
  position: absolute;
  top: 405px;
  left: 382px;
  width: 294px;
  height: 158px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.login .gameInfo ul li, 
.gameInfoPortrait ul li {
  display: flex;
  line-height: 1em;
}

.login .gameInfo h3, 
.gameInfoPortrait h3 {
  margin: 0 0 0 8px;
  text-transform: uppercase;
  font-size: 13px;
}

.login .gameInfoPortrait {
  top: 613px;
  left: 62px;
  width: 423px;
  height: 224px;
}

.login .gameInfoPortrait ul li {
  line-height: 2em;
}

.login .gameInfoPortrait h3 {
  font-size: 20px;
}

.login .solana, 
.solanaPortrait {
  position: absolute;
  top: 180px;
  left: 407px;
  width: 244px;
  height: 298px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.login .solanaPortrait {
  top: 306px;
  left: 127px;
  width: 295px;
  height: 298px;
  font-size: 1.3em;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login {
    padding-top: 12vh;
    align-items: flex-start;
  }

  .login .panel {
    width: calc(100vw - 32px);
    padding: 18px;
    border-radius: 18px;
  }

  .panel input[type="text"],
  .panel input[type="email"],
  .panel input[type="password"] {
    font-size: 1.1em;
  }

  .login button {
    font-size: 1em;
    padding: 8px 12px;
  }

  .header {
    padding: 12px 16px;
  }

  .logo {
    font-size: 20px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 14px;
  }
}

/* Checkbox Styling */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ff9a00;
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}