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

/* Main box that holds everything */
.signup-box {
    width: 90%;
    max-width: 800px;
    background-color: #8CC084;
    /* Slightly darker green background */
    border-radius: 30px;
    /* Round corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
    padding-top: 3rem;
    /* 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 */
.title-text {
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle-text {
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
}

/* 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: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-input:focus {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Buttons */
.btn-cancel {
    background-color: #bcbcbc;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #a0a0a0;
    transform: translateY(-2px);
}

.btn-submit {
    background-color: #72abdb;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #5a9bd2;
    transform: translateY(-2px);
}

.message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    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;
}
.btn-google {
    background-color: #ffffff;
    color: #757575;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.btn-google:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}
.btn-google img {
    width: 20px;
    height: 20px;
}
.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;
}
.login-text {
    color: #ffffff;
    font-size: 0.9rem;
}
.login-link {
    color: #72abdb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.login-link:hover {
    color: #5a9bd2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .signup-box {
        width: 95%;
        margin: 20px auto;
        padding-top: 2.5rem;
    }

    .row {
        flex-direction: column;
    }

    .left-col {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .btn-cancel, .btn-submit {
        width: 100%;
        margin: 5px 0;
    }

    .d-flex.justify-content-end {
        flex-direction: column;
    }

    .divider {
        margin: 10px 0;
    }
    
    .login-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .signup-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;  
    }
  }

/* Google Material Design Button */
.google-signup-button {
  display: flex;
  justify-content: center;
}

.gsi-material-button {
  user-select: none;
  appearance: none;
  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%;
}