
.captcha-error-alert,
.user-exists-alert,
.error-alert {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease-out;
}

.captcha-error-alert {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.35);
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.12);
}

.user-exists-alert {
    background: rgba(255, 152, 0, 0.12);
    border: 1px solid rgba(255, 152, 0, 0.35);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.1);
}

.error-alert {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.35);
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.12);
}

.error-alert ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.error-alert li {
    color: #ff8a80;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.user-exists-alert .alert-icon,
.error-alert .alert-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.user-exists-alert .alert-content,
.error-alert .alert-content {
    flex: 1;
}

.user-exists-alert strong,
.error-alert strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.user-exists-alert strong {
    color: #ffb74d;
}

.error-alert strong {
    color: #ff8a80;
}

.user-exists-alert p {
    color: rgba(255, 183, 77, 0.9);
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.user-exists-alert small {
    display: block;
    color: rgba(255, 183, 77, 0.75);
    font-size: 13px;
    font-style: italic;
}

.user-exists-alert small a {
    color: #7c97ff;
    text-decoration: underline;
    font-weight: 500;
}

.user-exists-alert small a:hover {
    color: #a8b9ff;
}

.captcha-error-alert .alert-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    animation: shake 0.5s ease-in-out;
}

.captcha-error-alert .alert-content {
    flex: 1;
}

.captcha-error-alert strong {
    display: block;
    color: #ff8a80;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.captcha-error-alert p {
    color: rgba(255, 138, 128, 0.9);
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.captcha-error-alert small {
    display: block;
    color: rgba(255, 138, 128, 0.75);
    font-size: 13px;
    font-style: italic;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.login-hint {
    margin-top: 8px;
    padding: 14px 16px;
    background: linear-gradient(101deg, rgba(63, 81, 181, 0.1), rgba(63, 81, 181, 0.03) 100%);
    border-left: 4px solid rgba(124, 151, 255, 0.55);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-hint-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-hint-title svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: #fff;
}

.login-hint-text {
    font-size: 13px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 10px;
}

.login-preview {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(63, 81, 181, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.login-preview-label {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.login-preview-url {
    font-family: "Courier New", Monaco, monospace;
    font-size: 14px;
    word-break: break-all;
    line-height: 1.5;
}

.login-preview-url .url-static {
    color: rgba(255, 255, 255, 0.45);
}

.login-preview-url .login-placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

.login-preview-url .login-value {
    color: #7c97ff;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(124, 151, 255, 0.12);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-hint.has-value .login-value {
    animation: highlight 0.5s ease;
}

@keyframes highlight {
    0%, 100% {
        background: rgba(63, 81, 181, 0.1);
    }
    50% {
        background: rgba(63, 81, 181, 0.2);
    }
}

input[name="REGISTER[LOGIN]"] {
    font-family: "Courier New", Monaco, monospace;
    letter-spacing: 0.5px;
}

.bx-auth-table {
    width: 100%;
    border-collapse: collapse;
}

.bx-auth-table tr {
    gap: 0.75rem;
}

.bx-auth-label {
    width: 180px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    vertical-align: top;
    margin-bottom: 0;
}

.bx-auth-input {
    width: 100%;
    max-width: 100%;
    padding: 0.95rem 1.25rem;
    background: rgba(12, 18, 48, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.bx-auth-input:focus {
    outline: none;
    border-color: rgba(124, 151, 255, 0.55);
    background: rgba(18, 26, 68, 0.85);
    box-shadow: 0 0 0 3px rgba(124, 151, 255, 0.18);
}

.bx-auth-input.error {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.08) !important;
}

.registration-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(12, 18, 48, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.registration-consent__checkbox {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.15rem 0 0;
    accent-color: #7c97ff;
    cursor: pointer;
}

.registration-consent__checkbox:focus-visible {
    outline: 3px solid rgba(124, 151, 255, 0.55);
    outline-offset: 3px;
}

.registration-consent__label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    line-height: 1.55;
    cursor: pointer;
}

.registration-consent__label a {
    color: #aebeff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.registration-consent__label a:hover,
.registration-consent__label a:focus-visible {
    color: #fff;
}

.bx-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    min-height: 44px;
    box-shadow: 0 4px 18px rgba(26, 35, 126, 0.45);
}

.bx-auth-submit:hover {
    background: linear-gradient(135deg, #141d5c, #283593);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 73, 171, 0.5);
}

.bx-auth-submit:active {
    transform: translateY(0);
}

.registration-form .captcha-container {
    gap: 12px;
}

.registration-form .captcha-container,
.registration-form .captcha-container:focus-within {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.registration-form .captcha-image-wrap {
    flex: 0 0 auto;
}

.registration-form .captcha-image {
    width: auto !important;
    max-width: 180px;
    height: 40px;
}

.registration-form .captcha-input {
    width: 100%;
}

@media (max-width: 768px) {
    .bx-auth-table tr {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .bx-auth-label {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
    }

    .bx-auth-input,
    .bx-auth-submit {
        max-width: 100%;
    }

    .login-hint {
        padding: 12px;
    }

    .login-preview-url {
        font-size: 13px;
    }

    .captcha-error-alert,
    .user-exists-alert,
    .error-alert {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .login-hint-title {
        font-size: 12px;
    }

    .login-hint-text,
    .login-preview-label {
        font-size: 12px;
    }

    .login-preview-url {
        font-size: 12px;
        line-height: 1.4;
    }

    .user-exists-alert .alert-icon,
    .error-alert .alert-icon,
    .captcha-error-alert .alert-icon {
        font-size: 24px;
    }
}
