/* app/static/css/login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Nunito';
}

.login-container {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    /* Flask Path for Background */
    background-image: url('../images/sign-up-and-onboarding background.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow-x: hidden;
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    /* Reduced for register link visibility */
}

.logo {
    margin-bottom: 15px;
}

.title {
    font-size: 36px;
    font-weight: semibold;
    line-height: 70px;
    letter-spacing: 2%;
    color: #094D39;
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.error-msg {
    color: #c53030;
    background: rgba(197, 48, 48, 0.1);
    padding: 10px;
    border-radius: 15px;
    font-size: 13px;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 24px;
    font-size: 14px;
    color: #20A576;
    font-weight: regular;
    line-height: 16px;
    z-index: 1;
}

.input-group input {
    opacity: 1;
    border-radius: 60px;
    padding-top: 25px;
    padding-right: 40px;
    padding-bottom: 25px;
    padding-left: 40px;
    border: 1px solid #36E1A3
}

.input-group ::placeholder {

    font-weight: Regular;
    font-size: 18px;
    line-height: 28.16px;
    letter-spacing: 0px;
    vertical-align: middle;
    position: absolute;
    top: 40px;
    left: 48px;
    z-index: 1;

}

input {
    font-family: 'Nunito';
    font-weight: Regular;
    font-size: 18px;
    line-height: 28.16px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #444444;
    background-color: #fff;
    padding-top: 40px;
    outline: none;
}

input:focus {
    border: 2px solid #36E1A3 !important;
    outline: none;
}

.input-group input:focus {
    border: 2px solid #36E1A3 !important;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(45, 212, 160, 0.1);
    outline: none;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 598px;
    height: 80px;
    justify-content: space-between;
    opacity: 1;
    border-radius: 60px;
    padding-top: 25px;
    padding-right: 40px;
    padding-bottom: 25px;
    padding-left: 40px;

}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #36E1A3;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #36E1A3;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* .checkbox-group label {
    font-size: 12px;
    color: #555;
} */

.checkbox-group a {
    color: #2DD4A0;
    text-decoration: none;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #444444 !important;
    border: 1px solid #36E1A3 !important;
    caret-color: #444444;
}

.input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #444444 !important;
    border: 2px solid #36E1A3 !important;
    caret-color: #444444;
}


.btn-create {
    width: 100%;
    padding: 16px;
    background-color: #A1FFD8;
    color: #20A576;
    height: 80px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 129px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-top: 33px;
    padding-bottom: 33px;
    line-height: 24px;
    margin-top: 10px;
}

.btn-create:hover {
    background-color: #41FFBA;
    color: #004D33;
}

/* Ported Design: Register Link Styling */
.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #444444;
}

.register-link a {
    color: #2BC38C;
    text-decoration: none;
    font-weight: 800;
    margin-left: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive Queries */
@media (min-width: 480px) {
    .content {
        padding-top: 70px;
    }

    .title {
        font-size: 26px;
    }
}

@media (min-width: 768px) {
    .content {
        padding-top: 191px;
        max-width: 600px;
    }

    .title {
        font-size: 36px;
    }

    .input-group input {
        padding-top: 25px;
        padding-right: 40px;
        padding-bottom: 25px;
        padding-left: 48px;
        width: 558px;
        height: 80px;
    }

    .input-group label {
        left: 48px;
        margin-top: 2px;
    }
}

/* Mobile background image (below 768px) */
@media (max-width: 767px) {
    .login-container {
        background-image: url('../images/login-onboarding-phone.png');
        background-size: cover;
        background-position: center;
    }
}