/* css/login_form.css */
#login-form {
    height: (var(--vh) * 100);
    min-height: 100vh;
    width: 100dvw;
    background: rgba(211, 211, 211, 0.7);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 25;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

#inner-form {
    background: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: fill;
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 95%;
    max-height: 90dvh;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--bg4);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#inner-form::-webkit-scrollbar {
    display: none;
}

#inner-form-top {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#inner-form-l,
#inner-form-r {
    display: flex;
    flex-direction: column;
    background-color: #ffffff40;
    min-height: auto;
    min-width: 300px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    padding-bottom: 30px;
    gap: 15px;
    border-radius: 8px;
}

#inner-form-r {
    position: relative;
    padding-left: 50px;
}

#inner-form-l,
#inner-form-r {
    transition: transform 0.7s linear;
    transform-style: preserve-3d;
}

#inner-form-l.spin,
#inner-form-r.spin {
    transform: rotateY(90deg) skewY(5deg) scaleY(0.9);
}

.romania_login_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

body.romania_login_mode #inner-form-l {
    align-items: stretch;
}

@media (min-width: 941px) {
    body.romania_login_mode #inner-form-l {
        flex-direction: row;
    }
}

.login-left,
.login-right {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 100%;
    width: 350px;
}

.login-left {
    display: none;
}

.close-btn {
    display: flex;
    background: url('/icon/small/X1_black.svg') no-repeat center center;
    position: absolute;
    top: 10px;
    right: 5px;
    width: 35px;
    height: 35px;
    padding: 7px;
    background-size: 60%;
    cursor: pointer;
    z-index: 35;
}

#login_form input[type="text"],
#login_form input[type="password"] {
    border: 1px solid rgb(170, 170, 170);
}

.login-text h3 {
    color: var(--text-title-d_blue);
    font-size: 20px;
    padding: 10px 0;
}

.or-text {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.or-text::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--text-title-d_blue);
}

.or-text h3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--text-title-d_blue);
    border-radius: 50%;
    background: white;
    font-size: 14px;
    padding: 0;
    z-index: 1;
}

.login-right h3 {
    justify-content: center;
    text-align: center;
}

.login-left h3 {
    margin-bottom: 20px;
    text-align: center;
}

.password-container {
    position: relative;
    width: 100%;
    max-width: 330px;
}

#toggle-password,
#toggle-password1,
#toggle-password2 {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.forgot-password-wrapper {
    display: none;
    width: 100%;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

.forgot-password-wrapper.view_this {
    display: flex;
}

.forgot-password {
    display: flex;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 330px;
    border-radius: 6px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
}

.social-login.hide_it {
    display: none !important;
}

#to_revpay {
    position: relative;
    overflow: hidden;
    background: #dce8c8;
    color: #222;
    font-size: 24px;
    height: 80px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.35s ease-in-out;
}

#to_revpay:hover {
    filter: brightness(0.90);
}

#to_get_premium {
    display: none;
    position: relative;
    overflow: hidden;
    background: #d5edf8;
    color: #222;
    font-size: 24px;
    padding: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.35s ease-in-out;
}

#to_get_premium.view_this {
    display: flex;
}

#to_get_premium:hover {
    filter: brightness(0.95);
}

.romania_only_login {
    display: none;
}

body.romania_login_mode .romania_only_login {
    display: none;
}

.romania_login_intro {
    width: 330px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #12306d;
    text-align: center;
}

.romania_login_title {
    margin-top: 20px;
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.romania_trial_button {
    width: 330px;
    height: 80px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 10px;
    background: #3f7db8;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(27, 75, 130, 0.22);
}

.romania_trial_main {
    color: white;
    font-size: 21px;
    line-height: 1.1;
}

.romania_trial_sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 400;
}

.romania_trial_panel {
    width: 330px;
    min-height: 300px;
    display: none;
    border-radius: 10px;
    background: #f4f7fb;
    border: 1px solid #d8e2ef;
}

body.romania_login_mode .romania_trial_panel {
    display: none;
}

body.romania_login_mode .romania_trial_panel.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.romania_trial_panel_title {
    color: #12306d;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

#romania_trial_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.romania_trial_field {
    position: relative;
    display: flex;
}

.romania_trial_field span {
    position: absolute;
    top: -2px;
    left: 4px;
    padding: 0 4px;
    background: #f4f7fb;
    color: #23364f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.romania_trial_field:first-of-type {
    margin-top: 0;
}

.romania_trial_field b {
    color: #c62828;
}

#romania_trial_form input {
    width: 100%;
    border: 1px solid rgb(170, 170, 170);
    border-radius: 6px;
    margin-top: 0;
    padding: 10px;
    color: black;
    font-weight: bold;
    min-height: min(40px, 4.45dvh);
}

.romania_trial_note {
    color: #5b6472;
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
}

.romania_trial_note span {
    color: #c62828;
}

.romania_trial_help {
    color: #12306d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}


#romania_trial_form button {
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: #3267a4;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.romania_trial_response {
    min-height: 20px;
    font-size: 13px;
    text-align: center;
}

.romania_trial_response.ok {
    color: #1e7e34;
}

.romania_trial_response.error {
    color: #c62828;
}

@media (max-width: 940px) {
    #login-form {
        padding: 10px;
    }

    #inner-form {
        flex-direction: column;
        width: calc(100dvw - 20px);
        max-width: 95dvw;
        height: auto;
        max-height: 90dvh;
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: flex-start;
    }

    .login-left,
    .login-right {
        padding: 0;
        height: auto;
        flex: unset;
        width: 100%;
        min-width: 0;
    }

    .login-left {
        padding-top: 35px;
    }

    #inner-form-l,
    #inner-form-r {
        width: 100%;
        min-width: 0;
        padding: 15px;
    }

    #login_form,
    #login_form input[type="text"],
    #login_form input[type="password"],
    .romania_login_content,
    .romania_login_intro,
    .romania_trial_button,
    .romania_trial_panel,
    .social-login,
    #to_revpay {
        width: 100%;
    }

    .options {
        font-size: 12px;
    }

    #toggle-password {
        top: 40%;
    }
}
