:root {
  --primary-gold: #eebf2c;
  --primary-gold-hover: #d4a51e;
  --dark-bg: #050505;
  --input-bg: #212121;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --glass-bg: rgba(25, 25, 25, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --input-glass-bg: rgba(255, 255, 255, 0.03);
  --input-glass-border: rgba(255, 255, 255, 0.1);
}

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

.galaxy-bg {
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('https://storage.perfectcdn.com/fdc83w/xyw90jl75onjlfwd.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: slowPan 60s linear infinite alternate;
  opacity: 0.3;
}

@keyframes slowPan {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(-1%, -1%); }
  100% { transform: scale(1) translate(1%, 1%); }
}

.main-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.main-wrapper .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.login-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.unboxed-form {
  width: 100%;
  padding: 1rem 0;
}

.welcome-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.welcome-subtext {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-input {
  width: 100%;
  background: var(--input-glass-bg);
  border: 1px solid var(--input-glass-border);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.custom-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.custom-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(238, 191, 44, 0.5);
  box-shadow: 0 0 15px rgba(238, 191, 44, 0.15);
}

.password-input {
  padding-right: 140px;
}

.forgot-link {
  position: absolute;
  right: 15px;
  color: var(--primary-gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.forgot-link:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(238, 191, 44, 0.4);
}

.btn-gold {
  width: 100%;
  background: linear-gradient(135deg, #f2c94c 0%, #eebf2c 100%);
  color: #000000;
  border: none;
  padding: 1.1rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(238, 191, 44, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fcebb6 0%, #f2c94c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 191, 44, 0.3);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(238, 191, 44, 0.2);
}

/* =========================================
CUSTOM GOOGLE BUTTON STYLES
========================================= */
.btn-google {
  position: relative; 
  width: 100%;
  background: var(--input-glass-bg);
  border: 1px solid var(--input-glass-border);
  color: var(--text-main);
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
  overflow: hidden; /* Clips the scaled up iframe perfectly */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.google-invisible-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  z-index: 10;
}

.google-invisible-layer .g_id_signin {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(10); /* Massively scaled up to ensure it covers the custom wrapper */
  transform-origin: center;
}

/* ========================================= */

.footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

.footer-text a {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 600;
}

.footer-text a:hover {
  text-decoration: underline;
}

.marketing-content {
  padding: 2rem 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--input-glass-bg);
  border: 1px solid var(--input-glass-border);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trust-badge i {
  color: var(--primary-gold);
}

.highlight-text {
  color: var(--primary-gold);
}

.marketing-heading {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -1px;
}

.marketing-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 95%;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
  margin-bottom: 3.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(238, 191, 44, 0.05);
  border: 1px solid rgba(238, 191, 44, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: rgba(238, 191, 44, 0.15);
  transform: scale(1.05);
}

.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  margin-top: 0;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.reviews-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--input-glass-border);
}

.avatar-group {
  display: flex;
}

.avatar-group img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--dark-bg);
  margin-left: -15px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-group img:hover {
  transform: translateY(-5px);
  z-index: 10;
  position: relative;
}

.avatar-group img:first-child {
  margin-left: 0;
}

.reviews-text {
  display: flex;
  flex-direction: column;
}

.reviews-text .stars {
  color: var(--primary-gold);
  font-size: 0.85rem;
  margin-bottom: 3px;
}

.reviews-text span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.reviews-text strong {
  color: #fff;
  font-weight: 600;
}

.loading-bar-container {
  width: 100%;
  height: 2px;
  background: var(--input-bg);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2rem;
}

.loading-bar {
  height: 100%;
  width: 30%;
  background: var(--primary-gold);
  border-radius: 2px;
  animation: loadLoop 2s ease-in-out infinite;
}

@keyframes loadLoop {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.custom-alert {
  background: var(--input-glass-bg);
  border: 1px solid var(--input-glass-border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.custom-alert.alert-danger {
  border-color: rgba(220, 53, 69, 0.5);
  background: rgba(220, 53, 69, 0.1);
}

.custom-alert.alert-success {
  border-color: rgba(25, 135, 84, 0.5);
  background: rgba(25, 135, 84, 0.1);
}

.custom-alert .close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--text-main);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  text-shadow: none;
}

.custom-alert .close:hover {
  opacity: 1;
}

/* =========================================
MOBILE RESPONSIVENESS (CENTERED & COMPACT)
========================================= */
@media (max-width: 991px) {
  .main-wrapper .row {
    flex-direction: column; 
  }

  /* Form spacing adjustments */
  .login-column { 
    order: 1 !important; 
    margin: 0 auto 1rem auto !important; /* Severely reduced the gap */
    padding: 1rem;
  }

  .content-column {
    order: 2 !important; 
    padding: 1rem;
  }

  /* Centered and Compact Marketing Content */
  .marketing-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    text-align: center; /* Center text */
    padding: 0; /* Remove top/bottom padding to make compact */
  }

  .marketing-heading { 
    font-size: 2.4rem; 
    margin-bottom: 1rem; /* tighter margin */
  }

  .marketing-desc {
    max-width: 100%;
    margin-bottom: 2rem; /* tighter margin */
  }

  /* Force 1 column and center the features */
  .features-grid { 
    grid-template-columns: 1fr; 
    gap: 1.2rem; 
    width: 100%;
    margin-bottom: 2.5rem;
  }

  /* Stack Icon above the text */
  .feature-item {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  /* Stack avatars and reviews text */
  .reviews-cta {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }

  .main-wrapper { 
    padding: 2rem 0; 
    height: auto; 
    min-height: 100vh; 
  }
}