/**
 * Login and registration layout wrappers.
 */

.ht-login-block {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ht-login-block__header {
    margin-bottom: 24px;
}

.ht-login-block__header h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.ht-login-form .ht-form-section {
    margin-bottom: 0;
}

.ht-login-form .ht-form-actions {
    margin-top: 8px;
}

.ht-login-form .ht-form-actions .ht-button {
    width: 100%;
}

.ht-login-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.ht-register-prompt {
    margin: 0 0 10px;
    font-size: 15px;
}

.ht-forgot-password {
    margin: 0;
    font-size: 13px;
}

.ht-forgot-password a {
    color: #666;
}

.ht-vendor-register,
.ht-register-form {
    max-width: 560px;
    margin: 0 auto;
}

.ht-vendor-register__intro {
    margin-bottom: 24px;
    color: #555;
}

.ht-vendor-portal--auth {
    max-width: 640px;
    margin: 0 auto;
}

.ht-vendor-portal--auth .ht-login-block,
.ht-vendor-portal--auth .ht-vendor-register {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.ht-vendor-portal--auth .ht-login-links .ht-register-prompt {
    display: none;
}

.ht-vendor-portal__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #ddd;
}

.ht-vendor-portal__tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.ht-vendor-portal__tab:hover {
    color: #007cba;
}

.ht-vendor-portal__tab.is-active {
    color: #007cba;
    border-bottom-color: #007cba;
}

@keyframes ht-login-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.ht-login-block.shake {
    animation: ht-login-shake 0.2s ease-in-out 3;
}

.ht-login-form.is-submitting .ht-button[type="submit"] {
    opacity: 0.7;
    cursor: wait;
}
