:root {
    --auth-color-title: #052e31;
    --auth-color-text: #5f777b;
    --auth-color-border: #d7dfe0;
    --auth-color-accent: #0caf60;
    --auth-color-accent-hover: #0a9f58;
    --auth-color-error: #dc3545;
    --auth-color-bg-media: #e8f3f0;
    --auth-color-white: #ffffff;
}

.auth-body,
.auth-main {
    min-height: 100vh;
    margin: 0;
}

.auth-main {
    padding: 0;
}

.auth-login-widget {
    min-height: 100vh;
    background: var(--auth-color-white);
}

.auth-login-widget,
.auth-login-widget * {
    box-sizing: border-box;
}

.auth-login-widget__content {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-login-widget__form-section {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
}

.auth-login-widget__mobile-media {
    display: none;
}

.auth-login-widget__form-wrap {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

.auth-login-widget__top-nav {
    margin-bottom: 16px;
}

.auth-login-widget__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-color-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-login-widget__back-link:hover {
    color: var(--auth-color-accent);
}

.auth-login-widget__back-icon {
    width: 16px;
    height: 16px;
}

.auth-login-widget__title {
    margin: 0 0 32px;
    color: var(--auth-color-title);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
}

.auth-login-widget__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-login-widget__field {
    display: flex;
    flex-direction: column;
}

.auth-login-widget__label {
    margin-bottom: 6px;
    color: var(--auth-color-text);
    font-size: 14px;
    line-height: 1.4;
}

.auth-login-widget__input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--auth-color-border);
    border-radius: 12px;
    padding: 0 16px;
    color: var(--auth-color-text);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-widget__input::placeholder {
    color: rgba(95, 119, 123, 0.6);
}

.auth-login-widget__input:focus {
    outline: none;
    border-color: var(--auth-color-accent);
    box-shadow: 0 0 0 4px rgba(12, 175, 96, 0.2);
}

.auth-login-widget__input--error {
    border-color: var(--auth-color-error);
}

.auth-login-widget__password-wrap {
    position: relative;
}

.auth-login-widget__input--password {
    padding-right: 52px;
}

.auth-login-widget__password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 0;
    padding: 0;
    transform: translateY(-50%);
    background: transparent;
    color: var(--auth-color-text);
    cursor: pointer;
    overflow: hidden;
}

.auth-login-widget__password-toggle:hover {
    color: var(--auth-color-accent);
}

.auth-login-widget__password-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.auth-login-widget__password-icon--eye-off {
    opacity: 0;
}

.auth-login-widget__password-toggle--active .auth-login-widget__password-icon--eye {
    opacity: 0;
}

.auth-login-widget__password-toggle--active .auth-login-widget__password-icon--eye-off {
    opacity: 1;
}

.auth-login-widget__error {
    margin-top: 6px;
    color: var(--auth-color-error);
    font-size: 13px;
    line-height: 1.4;
}

.auth-login-widget__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-login-widget__check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-login-widget__check-input {
    flex-shrink: 0;
}

.auth-login-widget .site-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    border-radius: 0.3125rem;
    border: 1.5px solid #bfcbcd;
    background: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-widget .site-checkbox:hover {
    border-color: #0caf60;
}

.auth-login-widget .site-checkbox:checked {
    border-color: #0caf60;
    background-color: #0caf60;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.2l2.5 2.5 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.8rem 0.8rem;
}

.auth-login-widget .site-checkbox:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(12, 175, 96, 0.2);
}

.auth-login-widget .site-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.auth-login-widget__check-text {
    color: var(--auth-color-text);
    font-size: 14px;
}

.auth-login-widget__link {
    color: var(--auth-color-accent);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-login-widget__link:hover {
    color: var(--auth-color-title);
}

.auth-login-widget__link--accent {
    font-weight: 500;
}

.auth-login-widget__submit {
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-color-accent);
    color: var(--auth-color-white);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.auth-login-widget__submit:hover {
    background: var(--auth-color-accent-hover);
}

.auth-login-widget__submit:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.auth-login-widget__signup-text {
    margin: -8px 0 0;
    text-align: center;
    color: var(--auth-color-text);
    font-size: 14px;
}

.auth-login-widget__divider {
    position: relative;
    margin: 16px 0;
    text-align: center;
}

.auth-login-widget__divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--auth-color-border);
}

.auth-login-widget__divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: var(--auth-color-white);
    color: var(--auth-color-text);
    font-size: 14px;
}

.auth-login-widget__providers .auth-login-widget__providers-list,
.auth-login-widget__providers .auth-clients {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-login-widget__providers .auth-link,
.auth-login-widget__providers .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--auth-color-border);
    border-radius: 12px;
    background: var(--auth-color-white);
    color: var(--auth-color-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    padding: 0 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.auth-login-widget__providers .auth-link:hover,
.auth-login-widget__providers .social-btn:hover {
    border-color: var(--auth-color-accent);
    color: var(--auth-color-accent);
}

.auth-login-widget__providers .social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-login-widget__copyright {
    margin: 24px 0 0;
    text-align: center;
    color: var(--auth-color-text);
    font-size: 14px;
}

.auth-login-widget__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 33.3333%;
    background: transparent;
    position: sticky;
    top: 0;
    margin-right: 0;
    padding: 24px 0 24px 24px;
}

.auth-login-widget__media-image {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 48px);
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: 32px 0 0 32px;
}

@media (max-width: 1023px) {
    .auth-login-widget__content {
        flex-direction: column;
    }

    .auth-login-widget__media {
        display: none;
    }

    .auth-login-widget__mobile-media {
        display: block;
        margin: -24px -24px 24px;
        background: var(--auth-color-bg-media);
    }

    .auth-login-widget__mobile-image {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 0 0 32px 32px;
    }

    .auth-login-widget__title {
        font-size: 36px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .auth-login-widget__form-section {
        padding: 16px;
    }

    .auth-login-widget__mobile-media {
        margin: -16px -16px 20px;
    }

    .auth-login-widget__meta-row {
        flex-wrap: wrap;
        row-gap: 8px;
    }
}
