/* Page background */
body {
  margin: 0;
  padding: 0;
  background-color: #C1D7AE;
  /* Light green page background */
  font-family: "Mitr", sans-serif;
}

/* Main box that holds everything */
.login-box {
  width: 90%;
  max-width: 700px;
  background-color: #8CC084;
  /* Slightly darker green background */
  border-radius: 30px;
  /* Round corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
  padding: 2rem 1rem 1rem;
  /* Space for the bubble */
  min-height: fit-content;
  position: relative;
  margin: 30px auto;
}

/* The bubble at the top with "GameHub" text */
.gamehub-bubble {
  background-color: #ACC992;
  border-radius: 20px;
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: absolute;
  min-width: fit-content;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
}
.gamehub-bubble span {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
}

/* Left side text styles */
/* .login-text {
  margin-left: 25%;
} */

.title-text {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subtitle-text {
  color: #ffffff;
  font-size: 1.25rem;
}

/* Custom input fields */
.custom-input {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: background-color 0.2s;
}

.custom-input:focus {
  background-color: #fff;
}

/* Buttons */
.btn-cancel, .btn-submit {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-cancel {
  background-color: #bcbcbc;
  border: none;
  border-radius: 20px;
  color: #333;
  font-weight: 500;
}

.btn-cancel:hover {
  background-color: #a0a0a0;
}

.btn-submit {
  background-color: #72abdb;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-weight: 500;
}

.btn-submit:hover {
  background-color: #5a9bd2;
}

/* Links */
.forgot-link, .create-account-link {
  font-size: 0.9rem;
  margin: 0.5rem 0;
  display: block;
}

/* Message styles */
.message {
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  display: none;
  font-size: 0.9rem;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Google button container */
.google-login-button {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.gsi-material-button {
  user-select: none; /* Prevents text selection, supported in modern browsers */
  appearance: none; /* Removes default browser styling, supported in modern browsers */
  background-color: #f2f2f2;
  background-image: none;
  border: none;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Mitr', sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Mitr', sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
}

.gsi-material-button:disabled .gsi-material-button-state {
  background-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #001d35;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #001d35;
  opacity: 8%;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0;
  color: #ffffff;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.divider span {
  padding: 0 15px;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .login-box {
    width: 95%;
    padding: 1.5rem 1rem 1rem;
  }


  .title-text {
    font-size: 1.75rem;
  }

  .subtitle-text {
    font-size: 1.1rem;
  }

  .row.mx-0 {
    margin: 0 !important;
  }

  .col-md-4.left-col {
    margin-bottom: 1rem;
  }

  .btn-cancel, .btn-submit {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .login-box {
    padding: 2rem 1rem;
  }

  .gamehub-bubble {
    padding: 0.5rem 1.5rem;
}

  .custom-input {
    padding: 0.6rem 0.8rem;
  }
}

@media (min-width: 768px) {
  .left-col {
    margin-top: -3rem !important;
  }

  .btn-cancel, .btn-submit {
    width: auto;
  }

  .forgot-link, .create-account-link {
    display: inline-block;
  }
}