* {
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: 0em;
    margin: 0;
    padding: 0;
}

.login-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.login-container * {
    text-align: center;
}

.login-card {
    gap: 12px;
    padding: 40px;
    background: #ffffff;
    box-shadow: 0 1px 4px -3px rgba(0, 0, 0, 0.12), 0 2px 2px -1px rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.login-card * {
    width: 100%;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    line-height: 133.333%;
    letter-spacing: -0.48px;
    margin-bottom: 0;
}

.form-wrapper {
    gap: 12px;
}

.form-wrapper>div {
    width: 100%;
}

.form-control {
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 137.5%;
    text-align: left;
}

.error-text {
    color: #D23620;
    font-size: 13px;
}

.login-button {
    width: 100%;
    height: 45px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 8px 12px;
    background-color: #C1C7D7;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    cursor: not-allowed;
    font-family: 'Inter', sans-serif;
}

.login-button.active {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.00) 100%), #2D60E1;
}

.region-link-text {
    font-size: 13px;
    line-height: 153.864%;
    color: #4F5888;
    cursor: pointer;
    text-decoration: none;
}

.region-link-text:hover {
    color: #4F5888;
}

.forgot-password-text {
    font-size: 13px;
    line-height: 153.864%;
    color: #4F5888;
    cursor: pointer;
    text-decoration: underline;
}

.forgot-password-text:hover {
    color: #4F5888;
}

.black-subtitle {
    width: 100%;
    font-size: 16px;
    line-height: 137.5%;
    font-weight: 600;
    color: #000;
    margin-bottom: 9px;
    font-family: 'Inter', sans-serif;
}

.gray-subtitle {
    width: 100%;
    font-size: 14px;
    line-height: 142.875%;
    color: #323858;
    margin-bottom: 16px;
}

.sign-up-button {
    padding: 6px 12px;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.00) 100%), #FFF;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    border: none;

    color: #0D1A46;
    font-size: 14px;
    line-height: 171.429%;
    font-weight: 500;
    margin: 0 auto 9px;
    cursor: pointer;
}

.sign-up-button:hover {
    text-decoration: none;
    color: #0D1A46;
}

.password-input-wrapper { position: relative; }
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #717A90;
    height: 25px;
    width: 25px;
}
.password-toggle-btn:focus { outline: none; }
.password-toggle-btn .material-icons { font-size: 20px; }

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
    }

    .title {
        font-size: 18px;
    }
}

@media (min-width: 137.5rem) and (max-width: 239.99rem) { /* ~2200px to <2560px */
    .login-container {
        max-width: clamp(36rem, 32rem + 5vw, 52rem);
    }

    .login-container *,
    .black-subtitle,
    .gray-subtitle,
    .sign-up-button {
        font-size: 1rem;
    }

    .login-container h5 {
        font-size: clamp(1.6rem, 1.4rem + 0.6vw, 2.2rem);
    }

    .login-container input {
        font-size: 1rem;
        padding: 0.95rem 1.15rem;
        height: unset;
    }

    .login-container button {
        font-size: 1rem;
        padding: 0.95rem 1.3rem;
        height: unset;
    }

    .login-card,
    .form-wrapper {
        gap: 24px;
    }

    .password-toggle-btn {
        height: 40px !important;
        width: 40px !important;
    }

    .password-toggle-btn .material-icons {
        font-size: 30px;
    }
}

@media (min-width: 240rem) {    
    .login-container {
        padding: 4.5rem 5.5rem 4rem;
        max-width: clamp(51rem, 48rem + 9vw, 84rem);
    }

    .login-container *,
    .black-subtitle,
    .gray-subtitle,
    .sign-up-button {
        font-size: 1.725rem;
    }

    .login-container h5 {
        font-size: clamp(3rem, 2.4rem + 1.8vw, 3.3rem);
    }

    .login-container input {
        font-size: 1rem;
        padding: 0.95rem 1.15rem;
        height: unset;
    }

    .login-container button {
        font-size: 1rem;
        padding: 0.95rem 1.3rem;
        height: unset;
    }

    .login-card,
    .form-wrapper {
        gap: 24px;
    }

    .black-subtitle {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .sign-up-button {
        padding: 12px 20px;
        gap: 12px;
        border-radius: 10px;
        margin: 0 auto 15px;
    }

    .sign-up-button img {
        width: 40px;
        height: 40px;
    }

    .password-toggle-btn {
        height: 50px;
        width: 50px;
    }

    .password-toggle-btn .material-icons {
        font-size: 40px;
    }
}
