@import url("./styles.css");

.background-container {
    display: flex;
    min-height: 90vh;
    overflow: hidden;
    justify-content: center;
    height: fit-content;
    align-items: center;
    background-image: url("../images/index-images/surf.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.backgroundOverlay {
    position: relative;
}

#fieldBox a:hover {
    color: #233544;
}

.field-header, .column-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

}

.text-divider {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    font-size: 1.25rem;
}

.text-divider::before,
.text-divider::after {
    content: "";
    flex: 1;
    border-bottom: 4px solid #233544;
}

.text-divider:not(:empty)::before {
    margin-right: 10px;
}

.text-divider:not(:empty)::after {
    margin-left: 10px;
}

.children {
    margin-top: .8rem;
}

#fieldBox input {
    border: 2px solid gray;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#fieldBox .column-flex input {
    width: 48%;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem 0;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-container label {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.checkbox-container a {
    color: #233544;
    text-decoration: underline;
}

.checkbox-container a:hover {
    color: #000;
}

#error-message {
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    display: none;
    font-size: 0.9rem;
}

.gsi-material-button {
    width: 100%;
    background-color: white;
    border: 1px solid #747775;
    border-radius: 20px;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    height: 50px;
    letter-spacing: 0.25px;
    text-align: center;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem 1.5rem;
}

.gsi-material-button .gsi-material-button-icon {
    height: 30px;
    width: 30px;
}

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

.gsi-material-button .gsi-material-button-contents {
    flex-grow: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.gsi-material-button:disabled .gsi-material-button-contents,
.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: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    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: #303030;
    opacity: 8%;
}

#fieldBox {
    background-color: white;
    padding: 3rem 2rem;
    border: 3px solid white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    color: #233544;
    gap: 0.5rem;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
}

button {
    margin: 0.5rem 0;
}


.submit-div {
    display: flex;
    gap: 0.5rem;
    #back-to-step1 {
        flex: 1;
        color: 2rem;
    }
    #create-account-btn {
        flex: 9;
    }
}

h2 {
    font-size: 2rem !important;
    font-weight: 600;
    line-height: 1.2;
}

#fieldBox img {
    width: 50px;
}

#fieldBox .description {
    color: black;
    font-size: 1rem;
    line-height: 1.5;
}

.step2 {
    display: none;
}

.step2 h2.description {
    font-size: 1.1rem !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#fieldBox input,
#fieldBox label,
#fieldBox .description {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
/* ========== Step 2 checkbox row ========== */
.step2 .checkbox-container {
    display: flex;               /* side-by-side layout */
    align-items: center;         /* vertically center box + text */
    gap: 0.75rem;                /* space between box and label */
    margin: 1.2rem 0;            /* vertical spacing */
    width: 100%;                 /* full width */
  }
  
  .step2 .checkbox-container input[type="checkbox"] {
    flex-shrink: 0;              /* don’t let the box shrink */
    margin: 0;                   /* reset any default margins */
    width: 18px; height: 18px;   /* consistent size */
  }
  
  .step2 .checkbox-container label {
    flex: 1;                     /* take all the remaining space */
    line-height: 1.4;            /* good readability */
    font-size: 1rem;
    word-wrap: break-word;       /* wrap at word boundaries, not letters */
    text-align: left;
  }
  
  .step2 .checkbox-container a {
    text-decoration: underline;
    color: #233544;
  }
  
  .step2 .checkbox-container a:hover {
    color: #000;
  }
  
@media (max-width: 768px) {

    #fieldBox {
        padding: 2rem 1.5rem;
        max-width: 90%;
        margin: 2rem;
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.75rem !important;
    }

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

    #fieldBox .column-flex input {
        width: 100%;
    }

    .gsi-material-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        height: auto;
    }

    .checkbox-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #fieldBox {
        padding: 1.5rem 1rem;
        gap: 1rem;
        margin: 1rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .text-divider {
        font-size: 1rem;
    }

    .gsi-material-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}
