:root {
    --primary-color: #000000;
    --secondary-color: #0A009A;
    --third-color: #0A009A;
    --border-color: #E65125;
    --text-color: #212121;
    --gray-color: #9E9E9E;
    --background-color: #FFFFFF;
    --font-size-base: 16px;
    --input-border: #00439B;
    --error-color: #F44336FF;
    --cancel-color: #080081;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0;
}

.wrapper {
    padding: 24px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.close-button {
    background: none;
    border: none;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.top-bar-single {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.top-button {
    background: none;
    border: none;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: none;
}

.close-icon {
    width: 24px;
    height: 24px;
}

.close-label {
    font-size: 12px;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.logo-container img {
    max-width: 160px;
}

.card.with-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 32px 16px;
    background-color: #fff;
}

.title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.line {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.navigation-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 48px;
}

.navigation-tabs > div {
    flex: 1;
    text-align: left;
    font-size: 14px;
}

.navigation-tab-active {
    padding-bottom: 6px;
    border-bottom: 4px solid var(--secondary-color);
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 16px;
}

.navigation-tab-disabled {
    padding-bottom: 6px;
    border-bottom: 4px solid var(--gray-color);
    font-weight: 600;
    color: var(--gray-color);
    margin-right: 16px;
}

.navigation-tab-disabled a {
    color: var(--gray-color);
    text-decoration: none;
}

.message {
    color: var(--text-color);
    font-weight: 700;
    font-size: 16px;
    margin-top: 32px;
}

.message a {
    color: var(--secondary-color);
    text-decoration: none;
}

.form-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.form-input {
    margin-top: 24px;
}

.user-type-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-type-options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    width: 24px;
    height: 24px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.user-type-options input[type="radio"]:checked::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.user-type-options .form-radio-check {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-type-options .form-radio-check-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
}

.login-button,
.cancel-button {
    display: inline-block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.login-button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    margin: 24px 0 8px 0;
}

.cancel-button {
    background-color: transparent;
    color: var(--cancel-color);
    border: 2px solid var(--cancel-color);
    margin-bottom: 8px;
}

.login-button-login {
    margin-top: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-top: 2px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out;
}

input.is-invalid {
    border-color: var(--error-color);
    color: var(--error-color);
}

input::placeholder {
    color: #aaa;
}

.is-invalid {
    border-color: var(--error-color);
    box-shadow: none;
}

.form-text {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.invalid-feedback {
    font-size: 13px;
    color: var(--error-color);
    margin-top: 4px;
    padding-left: 4px;
    font-weight: 500;
}

.invalid-feedback ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.text-muted {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}

.checkbox-group {
    position: relative;
    margin-top: 24px;
}

.form-box-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.form-box-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    margin-top: 2px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.form-box-check input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='15' viewBox='0 0 20 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 2L7 13L2 8' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.form-box-check-label {
    color: var(--text-color);
    line-height: 1.4;
}

.checkbox-star {
    color: var(--error-color);
    margin-right: -4px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    transform: translateY(2px);
}

.checkbox-no-star {
    margin-left: 10px;
}


.consent-toggle {
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
    padding: 0;
    margin-left: 50px;
    margin-top: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chevron {
    transition: transform 0.3s ease;
}

.consent-toggle.open .chevron {
    transform: rotate(180deg);
}

.chevron-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: var(--primary-color);
    margin-top: 4px;
}

.consent-extra-text {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.hidden {
    display: none;
}

.turnstile-box {
    margin-top: 24px;
}

#turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-button {
    display: inline-block;
    margin: 32px 0 8px 0;
    padding: 8px 0;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
}

.no-account-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
}

.no-account-box span {
    font-weight: 600;
    font-size: 14px;
}

.no-account-button {
    font-family: 'Montserrat', sans-serif;
    color: var(--cancel-color);
    background: none;
    border: 2px solid var(--cancel-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.no-account-button:hover {
    background-color: rgba(10, 0, 154, 0.05);
}

.remember-me {
    margin: 16px 0 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
}

.forget-message {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}

.text-link {
    color: var(--input-border);
}


@media (min-width: 768px) {
    .wrapper {
        max-width: 880px;
        padding: 48px 40px;
    }

    .card.with-shadow {
        padding: 56px 48px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .title {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .form-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .navigation-tabs {
        gap: 32px;
        margin-bottom: 56px;
    }

    .navigation-tabs > div {
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-input {
        margin-top: 0;
    }

    .user-type-options {
        flex-direction: column;
        gap: 20px;
    }

    .form-radio-check-label {
        font-size: 18px;
    }

    .register-button {
        font-size: 18px;
        padding: 12px 0;
        border-radius: 10px;
    }

    .turnstile-box {
        margin-top: 32px;
    }

    #turnstile-container {
        justify-content: center;
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    form .form-group,
    form .form-input,
    form .user-type-options,
    form .form-box-check,
    form .checkbox-group,
    form .turnstile-box,
    form .register-button {
        max-width: 336px;
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .login-button {
        max-width: 336px;
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .message {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .cancel-button {
        max-width: 336px;
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .login-button-row {
        display: flex;
        gap: 16px;
        margin-top: 12px;
        width: 100%;
    }

    .login-button,
    .cancel-button {
        max-width: 167px;
        margin-top: 0;
    }
}

.consent-settings {
    margin: auto;
    text-align: center;
    padding-bottom: 16px;
}
