﻿.container {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background: #211F20;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 558px; /* Maximum width for larger screens */
    padding: 0 20px; /* Add padding for smaller screens */
    box-sizing: border-box;
}

.logo {
    margin-bottom: 20px;
    width: 50px; /* Adjust logo size for responsiveness */
    height: auto;
}

.login-title {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 5vw, 32px); /* Scales between 24px and 32px */
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.label-input {
    box-sizing: border-box;
    padding-left: 8px;
    width: 100%; /* Full width of the parent */
    height: 60px;
    background: #211F20;
    border-radius: 9.6px;
    border: 1px solid #666666;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #ffffff;
}

.login-label {
    margin-bottom: 20px;
    width: 100%;
}

.label-input::placeholder {
    color: #828282;
}

.label-input:focus {
    outline: 1px solid #EDCD94;
}

.label-forgot-password {
    cursor: pointer;
    text-align: right;
    color: #FFFFFF;
    font-family: Montserrat, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 1px;
    vertical-align: middle;
    margin-bottom: 20px;
}

.login-button {
    width: 100%; /* Full width */
    height: 61px;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #EDCD94;
    background: #1C1C1C;
    cursor: pointer;
    margin-top: 10px;
}

    .login-button:focus {
        outline: 1px solid #EDCD94;
    }

.login-button-text {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;
    color: #F5F5F5;
}

.have-account_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.have-account__text {
    font-family: Montserrat, sans-serif;
    font-weight: 200;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
    margin-right: 8px;
}

.have-account__link {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #EDCD94;
    cursor: pointer;
}

.have-account__link-white {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #FFFFFF;
    cursor: pointer;
}

.separator_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 100%;
}

.separator {
    height: 1px;
    width: 112px;
    background: #5F5F5F;
}

.separator__text {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: #5F5F5F;
    margin: 0 20px;
}

.google-button {
    width: 100%; /* Full width */
    height: 61px;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #343434;
    background: #222222;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-button-text {
    font-family: Montserrat, sans-serif;
    font-weight: 100;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #FFFFFF;
    margin-left: 20px;
}

.terms_wrapper {
    margin-top: 20px;
    width: 100%; /* Full width */
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #5F5F5F;
}

.label-input.error {
    border: 1px solid #FF0000;
}

.error-message {
    color: #FF0000;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    margin-top: 5px;
    display: block;
    min-height: 16px; /* Ensures consistent spacing even when no error */
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {

    .have-account_wrapper {
        flex-direction: column;
    }

    .have-account__text {
        font-family: Montserrat, sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0;
        text-align: center;
        vertical-align: middle;
        margin: 0 0 10px 0;
    }

    .terms_wrapper {
        font-family: Montserrat, sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0;
        text-align: center;
        vertical-align: middle;
    }

    .login-label {
        margin-bottom: 0;
    }

    .have-account__link {
        font-family: Montserrat, sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0;
        text-align: center;
        vertical-align: middle;
        text-decoration: none;
    }

    .login-title {
        font-size: 24px; /* Smaller title on tablets */
    }

    .label-input,
    .login-button,
    .google-button {
        height: 60px; /* Slightly smaller height */
    }

    .login-button-text {
        font-size: 20px; /* Smaller button text */
    }

    .have-account__text,
    .have-account__link,
    .have-account__link-white {
        font-size: 18px; /* Smaller text */
    }

    .separator {
        width: 80px; /* Shorter separator */
    }
}

@media screen and (max-width: 480px) {
    .login-title {
        font-size: 20px; /* Even smaller title on mobile */
    }

    .logo {
        width: 64px; /* Smaller logo */
    }

    .label-input {
        height: 60px; /* Smaller height */
    }

    .google-button {
        height: 50px;
    }

    .login-button {
        height: 40px;
        padding: 0;
    }

    .login-button-text {
        font-size: 18px; /* Smaller button text */
    }

    .label-forgot-password {
        font-size: 14px; /* Smaller forgot password text */
    }

    .have-account__text,
    .have-account__link,
    .have-account__link-white {
        font-size: 16px; /* Smaller text */
    }

    .separator {
        width: 60px; /* Even shorter separator */
    }

    .separator__text {
        font-size: 14px; /* Smaller separator text */
    }

    .google-button-text {
        font-size: 14px; /* Smaller Google button text */
    }
}
