/* Form Styles */
.register-title-header {
    color: #000000;
    font-size: 2em;
    margin-bottom: 20px;
}

#register-form {
    margin-bottom: 15px;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

.register-container {
    background: #061A9A;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the form group inside the container */
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%; /* Take full width */
    max-width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    color: #ffffff;
    margin-bottom: 5px;
    /* align-self: flex-start;  */
    width: 100%;
}

/* Make all inputs the same full width */
.form-group input.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px inset #d3d9e131;
    background-color: #ffffff1c; /* Darker input background */
    color: #FFFFFF;
    box-sizing: border-box; /* ensures padding doesn’t overflow */
}

.form-group input.error {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

#submit-btn {
    display: block;
    margin: 0 auto;
    width: 80%; /* Adjust this as needed, or remove for auto width */
    padding: 12px;
    background: #E94D8C;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background 0.3s, transform 0.1s;
    margin-top: 20px;
}

/* Hover effect */
#submit-btn:hover {
    background: #17a84b;
}

/* Click effect */
#submit-btn:active {
    background: #0b6623;
}

.or-separator {
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    color: #ffffff;
}

/* Social login buttons – mobile defaults */
.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.google-btn {
    flex: 1;                  
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1em;           
    font-weight: 700;
    padding: 10px;
    width: 115%;
}

.facebook-btn {
    flex: 1;                  
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1em;
    font-weight: 700;
    padding: 10px;
    width: 96%;
}

.socials-spacer {
    width: 100%;
    height: 10px;
}

/* Google button – universal */
.social-buttons .google-btn {
    background-color: #fff;
    color: #000;
}

/* Facebook button – universal */
.social-buttons .facebook-btn {
    background-color: #0866ff;
    color: #fff;
}

/* Social icon images – universal size */
.social-buttons img {
    width: 25px;
    height: 25px;
}

/* Login Button Styles */
.login-link-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 25px;
    background-color: #fff;
    color: #061A9A;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                filter 0.3s ease;
    border: 2px solid #061A9A;
}

.login-btn:hover {
    background-color: #061A9A;
    color: #fff;
}

.login-btn .login-icon {
    width: 20px;
    height: auto;
    display: inline-block;
    transition: filter 0.3s ease;
}

.login-btn:hover .login-icon {
    filter: brightness(0) invert(1);
}

/* Toggle Password Icon in the input container */
.input-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* The input in .input-container takes full width plus space for the toggle button */
.input-container .form-control {
    width: 100%;
    padding-right: 45px; /* space for the eye icon */
}

/* Position the eye icon (button) on the right edge */
.input-container button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    height: 40px;
    width: 40px;
    font-size: 1.1em; /* Adjust icon size as desired */
    color: #fff;      /* If you want it white */
}

/* 
================================
 Mobile/Responsive Media Queries
================================
*/

@media (max-width: 384px) {
    /* Adjust the container spacing/width */
    .register-container {
        margin-top: 25% !important;
        width: 90% !important;
    }
}

/* Smaller mobile devices (up to 480px) */
@media (max-width: 480px) {

    .center-container {
        max-width: 350px;
    }

    .register-container {
        margin-top: -15%;
        width: 100%;
    }

    .register-title-header {
        font-size: 1.5em;
        text-align: center;
        margin-bottom: 15px;
    }

    #register-form {
        margin-bottom: 20px;
        width: 100%;
    }

    /* .form-group => display: flex; flex-direction: column is already set above */

    .form-group label {
        margin-bottom: 5px;
        font-weight: 500;
        width: 100%;
    }

    /* Ensure inputs remain full width on mobile */
    .form-group input.form-control {
        width: 100%;
        margin-bottom: 10px;
    }

    #submit-btn {
        width: 100%;
        font-size: 1em;
    }

    .social-buttons {
        flex-direction: row;
        gap: 15px;
    }

    .social-buttons .google-btn,
    .social-buttons .facebook-btn {
        font-size: 1em;
        justify-content: center;
    }

    .or-separator {
        font-size: 1em;
        margin: 10px 0;
    }
}

/* Tablet size (481px to 768px) */
@media (max-width: 768px) and (min-width: 481px) {

    .login-container, .register-container {
        margin-top: 10%;
        padding: 0 40px; /* Example: widen side padding for tablets */
    }

    .register-title-header {
        font-size: 1.75em;
        text-align: center;
        margin-bottom: 15px;
    }

    #register-form {
        width: 100%;
        margin-bottom: 25px;
    }

    .form-group input.form-control {
        width: 100%;
    }

    #submit-btn {
        width: 100%;
        padding: 14px;
        font-size: 1.1em;
    }

    .social-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .social-buttons .google-btn,
    .social-buttons .facebook-btn {
        font-size: 1.1em;
    }

    .or-separator {
        font-size: 1.1em;
    }
}
